Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
- Subject: Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
- From: Jens Alfke <email@hidden>
- Date: Mon, 7 Apr 2008 22:03:27 -0700
On 7 Apr '08, at 8:11 PM, Mike wrote:
I need to get the creator code of my app's bundle without diving
into the bundle and reading the plist directly.
You're mixing up HFS creator codes with bundle identifiers, I think.
HFS creator codes are attributes of document files that identify what
app created them. They're 4-character codes like 'ttxt'. They're not
used much anymore in OS X, partly because most filesystems don't
support them. (Even if your app defines one, you won't find any files
inside the bundle with that creator code. It's stored as a key in the
Info.plist.)
Bundle identifiers look like "com.mycompany.MyApp" and are used to
identify applications in OS X. To get your app's bundle identifier,
use the NSBundle snippet someone already posted.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden