Re: Cocoa Bindings Question.
Re: Cocoa Bindings Question.
- Subject: Re: Cocoa Bindings Question.
- From: Ricky Sharp <email@hidden>
- Date: Wed, 10 May 2006 13:04:30 -0500
On Wednesday, May 10, 2006, at 12:22PM, Kenneth Clark <email@hidden> wrote:
>I have an existing code base that I need to extend. I have a model
>class that is bound to a custom control. Cocoa bindings delivers the
>value that the control needs to is just fine. When I edit it however,
>it doesn't get back to the model object. In the documentation it
>states that the data value gets sent back to model object ( through the
>NSObjectController class ) when an objectDidEndEditing message is sent
>by the view.
>
>My question is: since I have a custom control, what do I do to get the
>"edit" committed? Normal built-in controls already do this
>automatically, but I have not been able to find how I do it manually in
>my custom control.
Check out mmalc's joystick control example. It shows how to handle view-initiated changes.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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