• 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
path question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: path question
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: path question
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: loop efficiency & messages
  • Next by Date: Re: [OT] Application ideas
  • Previous by thread: Re: loop efficiency & messages
  • Next by thread: Re: path question
  • Index(es):
    • Date
    • Thread