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 (Cocoa-dev@lists.apple.com)

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