FROM : Kyle Sluder
DATE : Tue Jan 29 19:36:22 2008
On Jan 29, 2008 5:56 AM, Lieven Dekeyser <<email_removed>> 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
DATE : Tue Jan 29 19:36:22 2008
On Jan 29, 2008 5:56 AM, Lieven Dekeyser <<email_removed>> 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
| Related mails | Author | Date |
|---|---|---|
| Lieven Dekeyser | Jan 28, 22:11 | |
| Kyle Sluder | Jan 28, 22:45 | |
| Quincey Morris | Jan 28, 23:35 | |
| Lieven Dekeyser | Jan 29, 11:56 | |
| Kyle Sluder | Jan 29, 19:36 | |
| Quincey Morris | Jan 29, 19:39 | |
| Lieven Dekeyser | Jan 30, 16:09 |






Cocoa mail archive

