Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data: how to prevent document being dirtied when chaging attributes?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.