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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to