• 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: NSDictionary from .plist file in Bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary from .plist file in Bundle


  • Subject: Re: NSDictionary from .plist file in Bundle
  • From: Andy Lee <email@hidden>
  • Date: Wed, 21 May 2008 08:20:58 -0400

On May 21, 2008, at 7:42 AM, Allan Greenier wrote:
I have a vague memory that I can swoop up my own .plist in my main bundle into an NSDictionary with one call, but I can't seem to find that call right now.
I've looked at the NSBundle and NSDictionary api's to no avail.
Can someone her please spark my memory?

I do in two lines:


NSString *plistPath =
[[NSBundle mainBundle] pathForResource:@"MyPlist" ofType:@"plist"];
NSDictionary *plistContents =
[NSDictionary dictionaryWithContentsOfFile:plistPath];



--Andy

_______________________________________________

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: 
 >NSDictionary from .plist file in Bundle (From: Allan Greenier <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: NSDictionary from .plist file in Bundle
  • Next by thread: Re: NSDictionary from .plist file in Bundle
  • Index(es):
    • Date
    • Thread