• 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: Error with most basic method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Error with most basic method
      • From: email@hidden
References: 
 >Error with most basic method (From: email@hidden)

  • Prev by Date: Re: iTunes3 AppleEvents?
  • Next by Date: Re: How to find icon file path?
  • Previous by thread: Error with most basic method
  • Next by thread: Re: Error with most basic method
  • Index(es):
    • Date
    • Thread