• 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
Re: willChangeValueForKey, Ivars and Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: willChangeValueForKey, Ivars and Core Data


  • Subject: Re: willChangeValueForKey, Ivars and Core Data
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 19 Sep 2005 00:52:05 -0700


On Sep 18, 2005, at 10:14 PM, Scott Ahten wrote:

A NSTimer is used to calculate and update this value every second, which is displayed in a NSTableView column in my UI using KVO. However, when this attribute is set, a dark dot is displayed in the close button and the document is flagged as "dirty". Since this attribute is set to transient in my CoreData model, not used to set other persistent properties, nor are any persistent attributes "dependent" on this attribute, I'm not sure why the document thinks it's dirty and needs to be saved.

Transient properties are defined:

"A property of an entity that is not saved to a persistent data store, but which is recorded for undo and redo operations in memory."
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdGlossary.html>


If you don't want the property to be recorded for undo and redo, don't include it in the model.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: willChangeValueForKey, Ivars and Core Data
      • From: Scott Ahten <email@hidden>
References: 
 >willChangeValueForKey, Ivars and Core Data (From: Scott Ahten <email@hidden>)

  • Prev by Date: Application / AddressBook integration issues
  • Next by Date: Re: Removing a system extension
  • Previous by thread: willChangeValueForKey, Ivars and Core Data
  • Next by thread: Re: willChangeValueForKey, Ivars and Core Data
  • Index(es):
    • Date
    • Thread