• 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
Core Data Xcode 4 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data Xcode 4 question


  • Subject: Core Data Xcode 4 question
  • From: Andrew Kinnie <email@hidden>
  • Date: Thu, 01 Sep 2011 16:19:07 -0400

Greetings,

I have a Core Data implementation, using generated subclasses of NSManagedObject for some of my entities.

I used Xcode 4 to generate the initial subclass, then added other business rules methods as needed.  I noticed, however, that the to-many relationship methods are stubbed in to the .h file, but there is no implementation in the .m file and it reports incomplete implementation.  However, the methods appear to actually work.

So I am confused.  Am I supposed to implement these or not?  If not, what can I do to get rid of the warning?

Is there an explanation as to why the Generate Managed Object Subclass menu item would create them in the .h but not implement them in the .m?  I ask because I am concerned that I am missing something about Core Data.

Thanks in advance.

Andrew

PS:  The method are the to-many relationship methods of the form:

- (void)addMediaObject:(MediaResource *)value;
- (void)removeMediaObject:(MediaResource *)value;
- (void)addMedia:(NSSet *)value;
- (void)removeMedia:(NSSet *)value;

_______________________________________________

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: Core Data Xcode 4 question
      • From: Sean McBride <email@hidden>
    • Re: Core Data Xcode 4 question
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Overwhelming Options
  • Next by Date: Re: Overwhelming Options
  • Previous by thread: Re: Overwhelming Options
  • Next by thread: Re: Core Data Xcode 4 question
  • Index(es):
    • Date
    • Thread