• 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: Lon Giese <email@hidden>
  • Date: Fri, 2 Jun 2006 04:41:47 -0700

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


the warning says
from distinct Objective-C type
which is absolutely correct, but that shouldn't be a warning

I tried searching the documentation for this warning and it comes up with nothing relevant

Are you doing anything special in your project, like mixing C++ and objC or Java or importing from Code Warrior?

I think a xcode expert needs to answer this question... might be a bug...
My xcode problem turned out to be a bug... xcode seems to be pretty buggy and unstable... IMHO



WooHoo the ultimate Mac App for 'The Sims 2' power users. http://www.modthesims2.com/showthread.php?p=1239629 On Jun 2, 2006, at 3:02 AM, Graham wrote:

@interface BrowserDelegate : NSObject {
	Person *me;
}
- (id)initWith:(NSBrowser *)brow;
- (void)setSelf:(Person *)me;

@end


and the instance variable browser is defined as (NSBrowser *) for this call:


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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
  • Follow-Ups:
    • Re: Newbie error
      • From: "Michael Ash" <email@hidden>
References: 
 >Re: Re: Newbie error (From: Graham <email@hidden>)

  • Prev by Date: Re: Command-click table in background app SOLVED
  • Next by Date: Re: Newbie error
  • Previous by thread: Re: Re: Newbie error
  • Next by thread: Re: Newbie error
  • Index(es):
    • Date
    • Thread