• 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: Model initiated change in bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Model initiated change in bindings


  • Subject: Re: Model initiated change in bindings
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 10 Jul 2004 10:33:41 -0700

On Jul 10, 2004, at 8:59 AM, Jules Bonin-Ducharme wrote:

How do I communicate that the model has changed some of its values?

How are the values being changed? If you call your accessor methods, you should get automatic support for KVO notifications. Otherwise you will have to implement change notification manually:

[self willChangeValueForKey:@"level"];
// make change
[self didChangeValueForKey:@"level"];

See: <http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueObserving/index.html>

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Model initiated change in bindings (From: Jules Bonin-Ducharme <email@hidden>)

  • Prev by Date: NSThread sleepUntilDate
  • Next by Date: Re: Compositing Tricks?
  • Previous by thread: Model initiated change in bindings
  • Next by thread: NSThread sleepUntilDate
  • Index(es):
    • Date
    • Thread