I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly.

My code looks like this:

OSType creator = 0;
NSDictionary *itemDictionary = nil;

itemDictionary = [ defaultFileManager fileAttributesAtPath:enumeratedItem traverseLink:NO ];
                                                                                
if( itemDictionary  )
{
                                                                                
creator = [ itemDictionary fileHFSCreatorCode ];
                                                                                
if( creator == kMyAppSignature )
{
        // Do some stuff
}
}

The problem is, fileHFSCreatorCode on the returned attributes dictionary always returns 0 or an empty OSType. Is there some other method I need to use to get the creator of bundled apps instead of files?

I know the path at enumeratedItem is correct because I use it for other things in the same routine, which all work.

Thanks,

Mike
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to