• 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 Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings Problem


  • Subject: Re: Bindings Problem
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 5 Jan 2006 17:05:32 -0800


On Jan 5, 2006, at 3:50 PM, Camillo Lugaresi wrote:

2. Is there a way I can post a notification in 'B' that the bound
value will notice something has changed? (thus avoiding making 'A' get
involved)... E.G. is it documented anywhere what should get posted and
could I throw this manually (via my code)

willChangeValueForKey: didChangeValueForKey:

This may be misleading. *You must not simply sprinkle your code with KVO change notifications*.


If a value changes, it is only valid to -- indeed, you must -- invoke willChangeValueForKey: *before* a value changes, see <http:// www.cocoabuilder.com/archive/message/cocoa/2005/12/23/153094>.

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 Problem (From: John McLaughlin <email@hidden>)
 >Re: Bindings Problem (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: How to create Daemon for Mac 10.
  • Next by Date: Drag and Drop between two Tableviews
  • Previous by thread: Re: Bindings Problem
  • Next by thread: Re: Bindings Problem
  • Index(es):
    • Date
    • Thread