Re: Design Question: Where to observe using KVO?
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