• 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
Core Data: how to prevent document being dirtied when chaging attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Data: how to prevent document being dirtied when chaging attributes?
      • From: Felix Franz <email@hidden>
  • Prev by Date: Re: applicationShouldTerminate delegate does not work in Leopard
  • Next by Date: CALayer content looks "blurry"
  • Previous by thread: Re: Trouble with NSCollectionView
  • Next by thread: Re: Core Data: how to prevent document being dirtied when chaging attributes?
  • Index(es):
    • Date
    • Thread