• 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: Newbie error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Newbie error
      • From: Lon Giese <email@hidden>
References: 
 >Re: Re: Newbie error (From: Graham <email@hidden>)
 >Re: Newbie error (From: Lon Giese <email@hidden>)

  • Prev by Date: confusion in keycode
  • Next by Date: Re: Prevent transient attributes to mark the database as dirty ?
  • Previous by thread: Re: Newbie error
  • Next by thread: Re: Newbie error
  • Index(es):
    • Date
    • Thread