• 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: XML plist to NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: XML plist to NSArray (From: Michael Hanna <email@hidden>)

  • Prev by Date: Application icons
  • Next by Date: HELP! NSUserDefaults crashing on me
  • Previous by thread: Re: XML plist to NSArray
  • Next by thread: Making an interpreter
  • Index(es):
    • Date
    • Thread