Re: path question
Re: path question
- Subject: Re: path question
- From: Scott Stevenson <email@hidden>
- Date: Tue, 22 Mar 2005 12:42:34 -0800
On Mar 22, 2005, at 12:30 PM, Jeff Childers wrote:
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"];
Does GameView have #import for Foundation.h or Cocoa.h?
- Scott
--
http://treehouseideas.com/
http://theocacao.com/ [blog]
_______________________________________________
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