• 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: Referencing files in the app's bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referencing files in the app's bundle


  • Subject: Re: Referencing files in the app's bundle
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 30 Jul 2002 09:43:55 -0700

On Saturday, July 27, 2002, at 07:18 AM, Philip George wrote:

NSString * pathToXML = [[NSBundle mainBundle]
pathForResource:@"nameOfFile" ofType:@"xml"];


NSString * pathToXML = [NSBundle pathForResource:@"nameOfFile"
ofType:@"xml" inDirectory:[NSBundle mainBundle]];

Of these two, the first would definitely be preferred, because it can make use of any information already noted by the bundle instance. The second is likely to be less efficient.

Douglas Davidson
_______________________________________________
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: Referencing files in the app's bundle (From: Philip George <email@hidden>)

  • Prev by Date: Re: More memory allocation questions
  • Next by Date: Favorite Fonts
  • Previous by thread: Re: Referencing files in the app's bundle
  • Next by thread: Menu Extras in Jaguar
  • Index(es):
    • Date
    • Thread