• 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
How to keep creation/modification date of a (Core Data) object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to keep creation/modification date of a (Core Data) object?


  • Subject: How to keep creation/modification date of a (Core Data) object?
  • From: "Arthur C." <email@hidden>
  • Date: Sat, 07 Jul 2007 21:39:45 +0200

This must be a simple use of setKeys: triggerChangeNofiticationsForDependentKey, but I can't find the right method for the key 'modificationDate'...
Creation date is easy, just an awakeFromInsert will do.
But the modification date (obviously) has to change whenever any of the keys in the object changes. Moreover, it has to keep its value when we are just asking for the modification date (getter method), and on program shutdown/restart.


So, what is a clean way to do this?


Well, thanks for your time,

Arthur C.

_________________________________________________________________
Hotmail en Messenger on the move http://www.msn.nl/services

_______________________________________________

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: How to keep creation/modification date of a (Core Data) object?
      • From: "Philip Q" <email@hidden>
  • Prev by Date: Fwd: NSImage representations
  • Next by Date: Re: Help Book works on 10.4 but shows a blanc page on 10.3.9?
  • Previous by thread: Re: NSImage representations
  • Next by thread: Re: How to keep creation/modification date of a (Core Data) object?
  • Index(es):
    • Date
    • Thread