Re: NSTextField value binding and button click
Re: NSTextField value binding and button click
- Subject: Re: NSTextField value binding and button click
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 29 Jan 2008 13:36:22 -0500
On Jan 29, 2008 5:56 AM, Lieven Dekeyser <email@hidden> wrote:
> Unfortunately, it doesn't seem to be working as advertised. When I use
> an NSObjectController, I still have to call -commitEditing on it when
> the button is clicked, otherwise my model is not updated...
Unless you tell the NSTextField to update continuously this is exactly
how this is supposed to function.
> I'd expect
> NSTextField to lose focus and commit automatically when the user
> clicks a button, but the field doesn't seem to lose focus...
This isn't how the focus model on OS X works. Buttons can't become
key by default, unless Full Keyboard Access is on.
--Kyle Sluder
_______________________________________________
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