Re: Programmatic Binding KVC KVO
Re: Programmatic Binding KVC KVO
- Subject: Re: Programmatic Binding KVC KVO
- From: Richard Somers <email@hidden>
- Date: Wed, 4 Nov 2009 15:42:31 -0700
On Nov 4, 2009, at 2:31 PM, Kyle Sluder wrote:
This invokes the default implementation of -
bind:toObject:withKeyPath:options:, which takes care of the model ->
view communication. You now need to take care of the view -> model
communication. As described in the User Updates a Value in the User
Interface section of the Cocoa Bindings Programming Topics, you can
call -setValue:forKeyPath: on the toObject and withKeyPath arguments
of the original binding (you can get this information by calling -
infoForBinding). Or you might have some custom logic that informs
the controller/model of the change in a different way.
On Nov 4, 2009, at 2:34 PM, Jim Correia wrote:
When the view changes num, it need to push the change to the bound
model objects.
See mmalc’s Graphics Bindings sample:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Sometimes Cocoa can be overwhelming. This will help. Thank you so
much. :)
Richard
_______________________________________________
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