• 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: Triggering change notifications when modifying custom object ivars in core data app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Triggering change notifications when modifying custom object ivars in core data app


  • Subject: Re: Triggering change notifications when modifying custom object ivars in core data app
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 28 May 2009 14:41:26 -0400
  • Organization: Rogue Research Inc.

On 5/28/09 11:25 AM, Ben Trumbull said:

>> Specifically my entity has a 'transformable' attribute for which the
>> values are a custom object class, and this object class has an ivar
>> that is an NSMutableDictionary.  The user can modify entries in this
>> dictionary, and I would like this to cause the context to be flagged
>> as dirty and to have the custom object flagged to be updated in the
>> persistent store.
>
>Attributes can only be effectively immutable value types.

Rick,

Once you understand Ben's comments, something else follows: mutating a
ManagedObject's attribute wreaks havoc with undo.  Undo after all keeps
a history of changed attributes, and if you go mutating them, well...

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Triggering change notifications when modifying custom object ivars in core data app
      • From: Rick Hoge <email@hidden>
References: 
 >re: Re: Triggering change notifications when modifying custom object ivars in core data app (From: Ben Trumbull <email@hidden>)

  • Prev by Date: multiple windows (dialogs) per nib (.xlib) file
  • Next by Date: Re: multiple windows (dialogs) per nib (.xlib) file
  • Previous by thread: re: Re: Triggering change notifications when modifying custom object ivars in core data app
  • Next by thread: Re: Triggering change notifications when modifying custom object ivars in core data app
  • Index(es):
    • Date
    • Thread