Core Data: how to prevent document being dirtied when chaging attributes?
Core Data: how to prevent document being dirtied when chaging attributes?
- Subject: Core Data: how to prevent document being dirtied when chaging attributes?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 17 Jan 2008 10:35:11 -0500
- Organization: Rogue Research
Hi all,
In a Core Data app, how should one model a property of an object that a)
should be saved as part of the document b) should not participate in
undo c) should not dirty the document when changed and d) can be easily
bound to?
(Here's a lame example: consider a custom view MyView, it exposes an
NSColor binding to draw its background. If my model has a colour
property then my view can bind to it. The colour is important, and so
gets saved as part of the persistent store. But let's say that changing
the colour is not so important that it should dirty the document. How
do I do that? Perhaps a better example is window size, I want to save
the size of the window as part of the document, but I don't want
changing the window size to make the document dirty.)
Thanks,
--
____________________________________________________________
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