Re: Missing Core Data selector
Re: Missing Core Data selector
- Subject: Re: Missing Core Data selector
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 21 Jul 2005 16:59:01 -0400
on 2005-07-21 2:27 PM, Fritz Anderson at email@hidden wrote:
> Can you finesse the problem by replacing the implementation of
> addPersons: with
>
> {
> [[self mutableSetValueForKey: @"persons"] unionSet: inPersons];
> }
>
> ? The documentation is sparse (except in NSKeyValueCoding.h), but I
> had understood that that, and not trying to mutate the primitive
> value, is how one mutates to-many relations.
No. I'm actually going in the opposite direction on purpose, avoiding
mutableSetValueForKey: and implementing explicit "manual" accessors, on the
theory that this will make it much easier to implement full
AppleScriptability. So far this approach is proving out, but I haven't been
able to get this one piece of it working.
Following up on your suggestion, I see that I overlooked some of the
documentation about manual accessors for to-many relationships. I'll take a
closer look.
--
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