Re: Newbie error
Re: Newbie error
- Subject: Re: Newbie error
- From: Andrei Tchijov <email@hidden>
- Date: Thu, 1 Jun 2006 17:50:50 -0400
browser is not of the class expected by [initWith:]. If you know
that browser object is of correct type ( for example if you got
browser as "id" ), than you can cast it to correct type to get rid of
warning
browserDelegate = [[ BrowserDelegate alloc ] initWith: (correct
type) browser ];
On Jun 1, 2006, at 4:39 PM, Graham wrote:
I am getting this error:
/Users/graham/Projects/Pre FOF/Controller.m:13: warning: passing
argument 1 of 'initWith:' from distinct Objective-C type
For this line:
browserDelegate = [[BrowserDelegate alloc] initWith:browser];
And I cannot make the warning go away. What is the problem?
Thanks
_______________________________________________
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
_______________________________________________
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