• 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
Missing Core Data selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing Core Data selector


  • Subject: Missing Core Data selector
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 21 Jul 2005 07:46:20 -0400

In my scriptable Core Data application, I attempt to add a set of managed
objects to a to-many relationship using the technique shown for the example
accessor method in the Managed Object Accessor Methods documentation, like
this:

- (void)addPersons:(NSSet *)inPersons {
    [self willChangeValueForKey:@"persons"
withSetMutation:NSKeyValueUnionSetMutation usingObjects:inPersons];
    [[self primitiveValueForKey:@"persons"] unionSet:inPersons];
    [self didChangeValueForKey:@"persons"
withSetMutation:NSKeyValueUnionSetMutation usingObjects:inPersons];
}

But I get an error on the last line: "[NSIndexSpecifier
_isMaintainingInverse]: selector not recognized."

In case it matters, I have in fact set up the inverse for this relationship.

Is this a Cocoa bug, or am I overlooking something?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
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: Missing Core Data selector
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: EO_Archive files in nibs
  • Next by Date: Re: NSFileManager - "Can't read ..." - Strange update
  • Previous by thread: Re: EO_Archive files in nibs
  • Next by thread: Re: Missing Core Data selector
  • Index(es):
    • Date
    • Thread