Missing Core Data selector
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