How Finder loads icon(specified in Resource Folder) for an application(.app).

  • Hi All,

          I am creating a .app ( MyApp.app) manually from the terminal.
    This is the structure of my application bundle.

        MyApp.app
            |
            |
            |----- Contents
                   |
                   |------------------ Frameworks
                   |                      |
                   |                      |------ MyFramework.framework
                   |
                   |-------------------Info.plist
                   |
                   |
                   |-------------------PkgInfo
                   |
                   |------------------ MacOS
                   |                      |
                   |                      |------ MyApp
                   |
                   |------------------ Resources
                   |                      |
                   |                      |------ MyAppIcon.icns

          And MyApplications Info.plist is as follows

    <?xml version=1.0 encoding=UTF-8?>
    <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://
    www.apple.com/DTDs/PropertyList-1.0.dtd>
    <plist version=1.0>
    <dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>MyApp</string>
    <key>CFBundleIconFile</key>
    <string>MyAppIcon</string>
    <key>CFBundleIdentifier</key>
    <string>com.xxx.myapp</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>MyApp</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>PAWS</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    </dict>
    </plist>

    Finally after executing instructions to create these directories and
    file from the terminal , finder shows my application icon as the
    default one. Am i missing any thing. Please help me to solve this
    problem.

    Thanks in Advance.

    Thanks,
    JanakiRam.
  • Hi JanakiRam,
    I build applications bundles from the terminal often, and I've found
    that I need to move the newly created bundle to a different folder
    within the Finder to get Finder to recognize it.  I usually move it
    back to the original location after that.  That usually gets the
    Finder to recognize the bundle icon.  Ive never found any explicit
    documentation on why this would be, however, nor have I found
    documentation on a better way to do this.

    spencer

    On Oct 19, 2006, at 9:48 AM, Janakiram wrote:

    > Hi All,
    >
    > I am creating a .app ( MyApp.app) manually from the terminal.
    > This is the structure of my application bundle.
    >
    > MyApp.app
    > |
    > |
    > |----- Contents
    > |
    > |------------------ Frameworks
    > |                      |
    > |                      |------ MyFramework.framework
    > |
    > |-------------------Info.plist
    > |
    > |
    > |-------------------PkgInfo
    > |
    > |------------------ MacOS
    > |                      |
    > |                      |------ MyApp
    > |
    > |------------------ Resources
    > |                      |
    > |                      |------ MyAppIcon.icns
    >
    >
    > And MyApplications Info.plist is as follows
    >
    >
    > <?xml version=1.0 encoding=UTF-8?>
    > <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://
    > www.apple.com/DTDs/PropertyList-1.0.dtd>
    > <plist version=1.0>
    > <dict>
    > <key>CFBundleDevelopmentRegion</key>
    > <string>English</string>
    > <key>CFBundleExecutable</key>
    > <string>MyApp</string>
    > <key>CFBundleIconFile</key>
    > <string>MyAppIcon</string>
    > <key>CFBundleIdentifier</key>
    > <string>com.xxx.myapp</string>
    > <key>CFBundleInfoDictionaryVersion</key>
    > <string>6.0</string>
    > <key>CFBundleName</key>
    > <string>MyApp</string>
    > <key>CFBundlePackageType</key>
    > <string>APPL</string>
    > <key>CFBundleSignature</key>
    > <string>PAWS</string>
    > <key>CFBundleVersion</key>
    > <string>1.0</string>
    > </dict>
    > </plist>
    >
    >
    > Finally after executing instructions to create these directories
    > and file from the terminal , finder shows my application icon as
    > the default one. Am i missing any thing. Please help me to solve
    > this problem.
    >
    > Thanks in Advance.
    >
    > Thanks,
    > JanakiRam.
    >
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/spencer.salazar%
    > 40gmail.com
    >
    > This email sent to <spencer.salazar...>
  • $ /usr/bin/touch YourApp.app

    Help at all?

    Also, is this conversation really Cocoa-list-related?

    --
    mikey

    On 19 Oct, 2006, at 19:21, Spencer Salazar wrote:

    > Hi JanakiRam,
    > I build applications bundles from the terminal often, and I've
    > found that I need to move the newly created bundle to a different
    > folder within the Finder to get Finder to recognize it.  I usually
    > move it back to the original location after that.  That usually
    > gets the Finder to recognize the bundle icon.  Ive never found any
    > explicit documentation on why this would be, however, nor have I
    > found documentation on a better way to do this.
    >
    > spencer
    >
    > On Oct 19, 2006, at 9:48 AM, Janakiram wrote:
    >
    >> Hi All,
    >>
    >> I am creating a .app ( MyApp.app) manually from the terminal.
    >> This is the structure of my application bundle.
    >>
    >> MyApp.app
    >> |
    >> |
    >> |----- Contents
    >> |
    >> |------------------ Frameworks
    >> |                      |
    >> |                      |------ MyFramework.framework
    >> |
    >> |-------------------Info.plist
    >> |
    >> |
    >> |-------------------PkgInfo
    >> |
    >> |------------------ MacOS
    >> |                      |
    >> |                      |------ MyApp
    >> |
    >> |------------------ Resources
    >> |                      |
    >> |                      |------ MyAppIcon.icns
    >>
    >>
    >> And MyApplications Info.plist is as follows
    >>
    >>
    >> <?xml version=1.0 encoding=UTF-8?>
    >> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://
    >> www.apple.com/DTDs/PropertyList-1.0.dtd>
    >> <plist version=1.0>
    >> <dict>
    >> <key>CFBundleDevelopmentRegion</key>
    >> <string>English</string>
    >> <key>CFBundleExecutable</key>
    >> <string>MyApp</string>
    >> <key>CFBundleIconFile</key>
    >> <string>MyAppIcon</string>
    >> <key>CFBundleIdentifier</key>
    >> <string>com.xxx.myapp</string>
    >> <key>CFBundleInfoDictionaryVersion</key>
    >> <string>6.0</string>
    >> <key>CFBundleName</key>
    >> <string>MyApp</string>
    >> <key>CFBundlePackageType</key>
    >> <string>APPL</string>
    >> <key>CFBundleSignature</key>
    >> <string>PAWS</string>
    >> <key>CFBundleVersion</key>
    >> <string>1.0</string>
    >> </dict>
    >> </plist>
    >>
    >>
    >> Finally after executing instructions to create these directories
    >> and file from the terminal , finder shows my application icon as
    >> the default one. Am i missing any thing. Please help me to solve
    >> this problem.
    >>
    >> Thanks in Advance.
    >>
    >> Thanks,
    >> JanakiRam.
    >>
    >>
    >>
    >> _______________________________________________
    >> Do not post admin requests to the list. They will be ignored.
    >> Cocoa-dev mailing list      (<Cocoa-dev...>)
    >> Help/Unsubscribe/Update your Subscription:
    >> http://lists.apple.com/mailman/options/cocoa-dev/spencer.salazar%
    >> 40gmail.com
    >>
    >> This email sent to <spencer.salazar...>
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/mikey-san%
    > 40bungie.org
    >
    > This email sent to <mikey-san...>
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today