Re: Triggering change notifications when modifying custom object ivars in core data app
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