Re: XML plist to NSArray
Re: XML plist to NSArray
- Subject: Re: XML plist to NSArray
- From: sinclair44 <email@hidden>
- Date: Sat, 07 Jun 2003 16:52:15 -0400
On 6/7/03 4:28 PM, "Michael Hanna" <email@hidden> wrote:
>
NSBundle *mainBundle;
>
NSString *plistPath;
>
NSString *bundPath;
>
NSString *nameWithoutSuffix;
>
>
NSDictionary *allPhrasesDict;
>
>
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
>
nameWithoutSuffix = @"Phrases";
>
NSLog ( @"Made namewithoutsuffix");
>
bundPath = [mainBundle bundlePath];
You're not setting mainBundle to anything before you use it. You need a line
mainBundle = [NSBundle mainBundle];
Or just replace the mainBundle variable with that.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.