Re: Error with most basic method
Re: Error with most basic method
- Subject: Re: Error with most basic method
- From: Andy Lee <email@hidden>
- Date: Tue, 23 Jul 2002 21:45:20 -0400
At 8:02 PM -0400 7/23/02, email@hidden wrote:
Why does this statement:
dictionary = [NSDictionary dictionary];
cause this error:
cannot convert `_objc_class*' to `objc_object*' in argument passing
I'll bet you have an instance method called -dictionary in your
class. The compiler thinks that is the message you are sending to
NSDictionary. So it thinks you're sending an instance message to a
class.
Change the name of the ivar and/or its accessor method.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.