• 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: Jerrod Fowkes <email@hidden>
  • Date: Fri, 2 Jun 2006 05:51:45 -0700 (PDT)

Graham <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

For this line:

 browserDelegate = [[BrowserDelegate alloc] initWith:browser];

And I cannot make the warning go away. What is the problem?

Thanks
First off, I don't think its a bug in xcode, the only way that it could be a bug in xcode is if xocde was telling gcc something bad. Other than that it's a bug in GCC not xcode. Don't forget that xcode is just a wrapper for GCC.

I agree that what you have there isn't named correctly anyways, I suggest changing it too. I am a newbie and have bent over backwards to attempt to conform to the community.

"passing  argument 1 of 'initWith:' from distinct Objective-C type" It appears that the compiler is picking up that NSBrowser is a regular object from the framework. However it's almost like it can't recognize it. I would make sure that you have the proper #imports in your header file.

"passing  argument 1 of 'initWith:' from distinct Objective-C type" also sounds like  there is a warning in your implementation. It says 'from' Objective-C type'...which would indicate to me that maybe your implementation and your header don't match up or you are attempting to use NSBrowser wrongly.

These are just hunches though, just attempting to help with the newbie-ness that I have as well.

-Jerrod


---------------------------------
Ring'em or ping'em. Make  PC-to-phone calls as low as 1ยข/min with Yahoo! Messenger with Voice.
 _______________________________________________
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

References: 
 >Newbie error (From: Graham <email@hidden>)

  • Prev by Date: Crazy NSTreeController
  • Next by Date: why doesn't my scrollview scroll ...
  • Previous by thread: Re: Newbie error
  • Next by thread: Re: Re: Newbie error
  • Index(es):
    • Date
    • Thread