• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How Finder loads icon(specified in Resource Folder) for an application(.app).
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: How Finder loads icon(specified in Resource Folder) for an application(.app).
  • From: Spencer Salazar <email@hidden>
  • Date: Thu, 19 Oct 2006 19:21:57 -0400

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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How Finder loads icon(specified in Resource Folder) for an application(.app).
      • From: Michael Watson <email@hidden>
References: 
 >How Finder loads icon(specified in Resource Folder) for an application(.app). (From: Janakiram <email@hidden>)

  • Prev by Date: nextValidKeyView random failures
  • Next by Date: Re: How Finder loads icon(specified in Resource Folder) for an application(.app).
  • Previous by thread: How Finder loads icon(specified in Resource Folder) for an application(.app).
  • Next by thread: Re: How Finder loads icon(specified in Resource Folder) for an application(.app).
  • Index(es):
    • Date
    • Thread