• 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: Bindings + Trapping Changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings + Trapping Changes


  • Subject: Re: Bindings + Trapping Changes
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 17 Jun 2006 21:05:11 -0700


On Jun 17, 2006, at 7:05 PM, George Orthwein wrote:

If that doesn't work, I bet you could override setValue:forKey: in a NSMutableDictionary subclass.

NSMutableDictionary emits change notifications when values are changed for a key.

It recently worked for me (with NSManagedObject, but that shouldn't matter):
http://www.cocoabuilder.com/archive/message/cocoa/2006/6/5/165031


The documentation explicitly warns against overriding setValue:forKey: in a subclass of NSManagedObject...

<http://developer.apple.com/documentation/Cocoa/Reference/ CoreDataFramework/Classes/NSManagedObject_Class/Reference/ Reference.html#//apple_ref/occ/instm/NSManagedObject/setValue:forKey:>

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


References: 
 >Bindings + Trapping Changes (From: Keary Suska <email@hidden>)
 >Re: Bindings + Trapping Changes (From: George Orthwein <email@hidden>)

  • Prev by Date: Re: Bindings + Trapping Changes
  • Next by Date: Re: Strategy for read only Templates with Core Data
  • Previous by thread: Re: Bindings + Trapping Changes
  • Next by thread: Re: Bindings + Trapping Changes
  • Index(es):
    • Date
    • Thread