Re: Getting an application's creator code
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.