• 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: Getting an application's creator code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting an application's creator code


  • Subject: Re: Getting an application's creator code
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 3 Jul 2002 18:17:17 +0200

On Wednesday, July 3, 2002, at 04:38 , Philippe Martin wrote:

However, when the application is a bundle, these attributes don't have the NSFileHFSCreatorCode. I guess I could get the CFBundleSignature from its info.plist file, but I wonder if there's a more direct way that I miss.

Just use NSBundle (created by bundleWithPath:), and check its infoDictionary. It makes actually for the very same algorithm, but using simpler and much more portable code.

Incidentally, what you need the creator code for? Creator codes are pretty obsoleted -- the Cocoa standard is the *bundle identifier* without any clumsy 4-char-limitations. You can get it through bundleIdentifier message sent to the bundle.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Getting an application's creator code
      • From: Rosyna <email@hidden>
    • Re: Getting an application's creator code
      • From: Philippe Martin <email@hidden>
References: 
 >Getting an application's creator code (From: Philippe Martin <email@hidden>)

  • Prev by Date: Re: NSOutlineView's delegate is missing equivalent NSTableView delegate methods
  • Next by Date: Re: extracting html from text file
  • Previous by thread: Getting an application's creator code
  • Next by thread: Re: Getting an application's creator code
  • Index(es):
    • Date
    • Thread