Re: <<error: syntax error before 'OBJC_STRING' token>>
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