• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField value binding and button click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextField value binding and button click (From: "Lieven Dekeyser" <email@hidden>)
 >Re: NSTextField value binding and button click (From: Quincey Morris <email@hidden>)
 >Re: NSTextField value binding and button click (From: Lieven Dekeyser <email@hidden>)

  • Prev by Date: Re: Printing - taking advantage of full page size?
  • Next by Date: Re: NSTextField value binding and button click
  • Previous by thread: Re: NSTextField value binding and button click
  • Next by thread: Re: NSTextField value binding and button click
  • Index(es):
    • Date
    • Thread