Referencing Files within a App
Referencing Files within a App
- Subject: Referencing Files within a App
- From: email@hidden
- Date: Mon, 11 Aug 2003 16:28:35 -0400
Hello,
How does one reference a file that's in the app's resources folder. I
have a property list in my resources folder which I would like to
reference and so far I've been doing it like this:
NSDictionary *dictionary = [NSDictionary
dictionaryWithContentsOfFile:@"appName.app/Contents/Resources/
template.plist"];
This only seems to work when I run it from Project Builder.
It also works if I place template.plist on my desktop and reference it
from there.
I know I must be overlooking something simple.
-Alex P.
_______________________________________________
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.