Re: Newbie error
Re: Newbie error
- Subject: Re: Newbie error
- From: Mike Abdullah <email@hidden>
- Date: Thu, 1 Jun 2006 23:12:26 +0100
Well, what exactly is "browser" and what does your initWith: method
(which is poorly named by the way) require?
It looks a bit like as if you did the equivalent of:
NSData *myData;
NSString *myString = [[NSString alloc] initWithString: myData]];
In this case myData is an NSData object where the method requires an
NSString object. Therefore the compiler complains. This would
appear to the same kind of problem you are having.
Mike.
On 1 Jun 2006, at 21:39PM, 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:
40gmail.com
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