• 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
Re: <<error: syntax error before 'OBJC_STRING' token>>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <<error: syntax error before 'OBJC_STRING' token>>


  • Subject: Re: <<error: syntax error before 'OBJC_STRING' token>>
  • From: Alexander von Below <email@hidden>
  • Date: Fri, 11 Jul 2008 17:27:08 +0200

- (id)initWithNibName:(NSString *)@"PaintingView.xib" bundle:(NSBundle *)
mainBundle;


You have completely messed up the Objective-C syntax here. Instead of an identifier, you are passing a string constant.
This is how your method might look like correctly:


- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)mainBundle;

Alex

Am 11.07.2008 um 17:19 schrieb email@hidden:

- (id)initWithNibName:(NSString *)@"PaintingView.xib" bundle: (NSBundle *)
mainBundle; {

<<error: syntax error before 'OBJC_STRING' token>>


if (self = [super initWithNibName:@"PaintingView.xib" bundle:mainBundle]) {
// Initialization code
}
return self;
}


In my PaintingViewControllers.m, I can't resolve an error in red:
<<error: syntax error before 'OBJC_STRING' token>>.
Can someone help?



--------------------------------------
Stop! Global Warming ~ Yahoo! JAPAN Earth Project
http://pr.mail.yahoo.co.jp/earthproject/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 ><<error: syntax error before 'OBJC_STRING' token>> (From: <email@hidden>)

  • Prev by Date: <<error: syntax error before 'OBJC_STRING' token>>
  • Next by Date: Re: <<error: syntax error before 'OBJC_STRING' token>>
  • Previous by thread: <<error: syntax error before 'OBJC_STRING' token>>
  • Next by thread: Re: <<error: syntax error before 'OBJC_STRING' token>>
  • Index(es):
    • Date
    • Thread