Re: Can an app query the values in its own Info.plist?
Re: Can an app query the values in its own Info.plist?
- Subject: Re: Can an app query the values in its own Info.plist?
- From: Kyle Sluder <email@hidden>
- Date: Sun, 27 Sep 2009 20:41:48 -0700
On Sun, Sep 27, 2009 at 8:33 PM, Hippo Man <email@hidden> wrote:
> Is there a way for me to put my own, custom key into a Cocoa
> application's Info.plist and have the application query that key's
> setting?
Yes, using -[NSBundle infoDictionary]. And of course you can get the
app's bundle by using +[NSBundle mainBundle].
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/doc/uid/20000214-BCICBHBA
--Kyle Sluder
_______________________________________________
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