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

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

References: 
 >Re: Missing Core Data selector (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Bundles and installers...
  • Next by Date: Re: NSURLConnection dependency on RunLoop (Sanity check)
  • Previous by thread: Re: Missing Core Data selector
  • Next by thread: [somewhat OT] A life after being bounced from this list ?
  • Index(es):
    • Date
    • Thread