• 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: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
      • From: Steve Christensen <email@hidden>
References: 
 >fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles (From: Mike <email@hidden>)

  • Prev by Date: Re: How do I embed a font in an app?
  • Next by Date: NSUndoManager grouping somewhat broken?
  • Previous by thread: Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
  • Next by thread: Re: fileHFSCreatorCode & fileAttributesAtPath:traverseLink on app bundles
  • Index(es):
    • Date
    • Thread