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

Can an app query the values in its own Info.plist?


  • Subject: Can an app query the values in its own Info.plist?
  • From: Hippo Man <email@hidden>
  • Date: Sun, 27 Sep 2009 23:33:28 -0400

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?

I know that I can use the dictionaryWithContentsOfFile: method of an
NSDictionary to read an arbitrary, dictionary-like property list,
given its pathname. However, I'm wondering if there's a way to
automatically get one or more settings in the current Cocoa
application's Info.plist without knowing anything about its pathname.
In other words, I want to query settings from "my" Info.plist.

Is this possible? If so, could someone point me to some docs which
describe how to do this?

Thanks in advance.

--
 HippoMan <email@hidden>
_______________________________________________

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

  • Follow-Ups:
    • Re: Can an app query the values in its own Info.plist?
      • From: Kiel Gillard <email@hidden>
    • Re: Can an app query the values in its own Info.plist?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSView clicking through to superview
  • Next by Date: Re: Can an app query the values in its own Info.plist?
  • Previous by thread: Re: NSView clicking through to superview
  • Next by thread: Re: Can an app query the values in its own Info.plist?
  • Index(es):
    • Date
    • Thread