path question
path question
- Subject: path question
- From: Jeff Childers <email@hidden>
- Date: Tue, 22 Mar 2005 14:30:54 -0600
I know this is a newbie question but I don't know why it is throwing a error
#define kMapFileName @"map"
#define kMapFileType @"plist"
...
...
NSString* plistPath =[[NSBundle mainBundle] pathForResource: kMapFileName ofType: kMapFileType];
GameView.m:29: parse error before `*'
NSURL* plistURL = [NSURL fileURLWithPath: plistPath];
currentMap_ = [[Map alloc] initWithContentsOfURL: plistURL];
GameView.m:34: `plistURL' undeclared (first use in this function)
I tried:
NSString* plistPath =[[NSBundle mainBundle] pathForResource: @"map" ofType: @"plist"];
I look in my bundles resources and the file is there
What am I doing wrong? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden