• 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: watch changes to any properties on an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: watch changes to any properties on an object


  • Subject: Re: watch changes to any properties on an object
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 3 Sep 2009 11:43:31 -0700


On Sep 3, 2009, at 11:32 AM, Alexander Cohen wrote:

Ok, thats what i thought. But just for implementation ideas, how does CoreData know when one of it's @dynamic properties is changed? It must set some sort of flag somewhere in order to know what to write out when it needs to save. How does it handle that?

@dynamic properties are assigned implementations on the fly at runtime. NSManagedObject's implementation of the setter method includes setting the dirty flag, I suppose.


So actually my "no" wasn't strictly true. You can track changes to arbitrary dynamic properties, including those defined in subclasses, because they all funnel through a common implementation.

—Jens_______________________________________________

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: watch changes to any properties on an object
      • From: Alexander Cohen <email@hidden>
References: 
 >watch changes to any properties on an object (From: Alexander Cohen <email@hidden>)
 >Re: watch changes to any properties on an object (From: Jens Alfke <email@hidden>)
 >Re: watch changes to any properties on an object (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Re: NSImage with multiple representation sizes
  • Next by Date: Re: NSDictionary, allKeys and the NSAutoreleasePool
  • Previous by thread: Re: watch changes to any properties on an object
  • Next by thread: Re: watch changes to any properties on an object
  • Index(es):
    • Date
    • Thread