• 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: Design Question: Where to observe using KVO?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design Question: Where to observe using KVO?


  • Subject: Re: Design Question: Where to observe using KVO?
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 10 Jul 2008 16:13:47 -0400

> Where would you observe changes to data?

  I think you should worry about one thing at a time (ie, leave the
animation part for another day and concentrate on your bindings
machinery first). Check out this page:

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

  Great examples of Bindings in action. You'll be interested in the
"Graphics Bindings" and the "Manual Bindings" examples as they cover
(among other things) the kind of approach you're likely to want.
Hooking in the animation (because as you said, things can change)
would be done taking the examples' approaches into account.

  Specifically, you'd handle the animation as you would without
bindings ... only it's triggered within your observation code. You
have a chance to examine the 'old' and the 'new' there and respond in
kind.

--
I.S.
_______________________________________________

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: Design Question: Where to observe using KVO?
      • From: "I. Savant" <email@hidden>
References: 
 >Design Question: Where to observe using KVO? (From: Patrick Mau <email@hidden>)

  • Prev by Date: Re: Why can't I name a property `tag'?
  • Next by Date: Re: Design Question: Where to observe using KVO?
  • Previous by thread: Design Question: Where to observe using KVO?
  • Next by thread: Re: Design Question: Where to observe using KVO?
  • Index(es):
    • Date
    • Thread