• 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: warning: 'NSEntityDescription' may not respond to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: 'NSEntityDescription' may not respond to


  • Subject: Re: warning: 'NSEntityDescription' may not respond to
  • From: Peter Burtis <email@hidden>
  • Date: Fri, 30 May 2008 06:09:30 -0400

The compiler only knows about methods declared somewhere or the headers, and Core Data accessor methods are handled at runtime and not declared anywhere. It's only a warning and not an error because the compiler is smart enough to know that Objective C can do cool stuff like that.

One solution is to use [managedObject valueForKey:@"memo"] and [managedObject setValue:@"test123" forKey:@"memo"] instead of the accessors.

-Pete

On May 30, 2008, at 5:17 AM, Steven Hamilton wrote:
Hi folks,

I have a custom datasource that does a fetch from Core Data. My entity has a property in it called 'memo'.

When I enumerate the returned array to check the results I get the following warning.

warning: 'NSEntityDescription' may not respond to '-memo'

The fetch appears to work ok and I can use the data returned no problems but I don't like warnings I don't know as it may mean somethings going to bite my bum later on. Any clues?

Also, any warnings or errors I get in xcode appear twice in the bubbles. Anyone know why that is?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@glossysheep.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: warning: 'NSEntityDescription' may not respond to
      • From: mmalc crawford <email@hidden>
    • Re: warning: 'NSEntityDescription' may not respond to
      • From: "Kyle Sluder" <email@hidden>
References: 
 >warning: 'NSEntityDescription' may not respond to (From: Steven Hamilton <email@hidden>)

  • Prev by Date: Re: Another newbie question
  • Next by Date: Re: warning: 'NSEntityDescription' may not respond to
  • Previous by thread: warning: 'NSEntityDescription' may not respond to
  • Next by thread: Re: warning: 'NSEntityDescription' may not respond to
  • Index(es):
    • Date
    • Thread