Re: Referencing files in the app's bundle
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.