• 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: Can an app query the values in its own Info.plist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can an app query the values in its own Info.plist? (From: Hippo Man <email@hidden>)

  • Prev by Date: Can an app query the values in its own Info.plist?
  • Next by Date: NSBitmapImageRep caching behavior in Snow Leopard
  • Previous by thread: Can an app query the values in its own Info.plist?
  • Next by thread: Re: Can an app query the values in its own Info.plist?
  • Index(es):
    • Date
    • Thread