Re: Newbie error
Re: Newbie error
- Subject: Re: Newbie error
- From: "Michael Ash" <email@hidden>
- Date: Fri, 2 Jun 2006 11:42:18 -0400
On 6/2/06, Lon Giese <email@hidden> 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
>
if browser were not the proper type for the interface he would get an
(IMHO)
"incompatible pointer" warning
Well, that's wrong, as a simple test will show:
@interface Foo { }
- (void)test: (NSString *)x;
@end
...
[foo test: array];
test.m:11: warning: passing argument 1 of 'test:' from distinct Objective-C type
So this cryptic warning just means you got your ObjC pointer types mixed up.
Mike
_______________________________________________
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