• 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: Lieven Dekeyser <email@hidden>
  • Date: Wed, 30 Jan 2008 16:09:30 +0100

On 29 Jan 2008, at 19:39, Quincey Morris wrote:

On Jan 29, 2008, at 02:56, Lieven Dekeyser 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... 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...

It occurs to me you'd probably need to connect the button to the NSObjectController too (i.e. set its target/action through bindings), if you haven't tried that already.

That wouldn't make much sense in my case as the NSObjectController is managing the preferences, not the connection initiated by the login- button.


Clicking a button is not in general going to automatically end editing in a text field, because you need to be able to have buttons like "Bold" or "Clear" that affect the text field's contents during editing.

Good point!

I'll just continue to call -commitEditing...

Thanks for all your help,

--Lieven
_______________________________________________

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>)
 >Re: NSTextField value binding and button click (From: Quincey Morris <email@hidden>)

  • Prev by Date: pathnames in Tiger not showing volume name
  • Next by Date: Re: NSMatrix Multi-Select
  • Previous by thread: Re: NSTextField value binding and button click
  • Next by thread: CoreData: Returning all the records for a parent object
  • Index(es):
    • Date
    • Thread