• 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 and controlTextDidEndEditing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField and controlTextDidEndEditing


  • Subject: Re: NSTextField and controlTextDidEndEditing
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 27 Jun 2006 07:23:53 -0700
  • Thread-topic: NSTextField and controlTextDidEndEditing

On Mon, 26 Jun 2006 18:43:29 -0700, Matt Neuburg <email@hidden> said:
>On Mon, 26 Jun 2006 15:04:58 -0500, Damien Sorresso <email@hidden>
>said:
>>I'm trying to implement a behavior whereby as soon as a user ends
>>editing a text field (whether by tabbing out or clicking somewhere
>>else), the information there is saved and a corresponding Keychain
>>entry updated. But the NSTextFields in question only send the
>>`NSControlTextDidEndEditing' notification on a mouse click, not when
>>tabbing out.
>>
>>Is there a way to get the proper behavior with tabbing?
>
>Try controlTextDidEndEditing. m.

Well, that wasn't very clear. :) What I meant was: when you say the
NSTextField is not sending NSControlTextDidEndEditing, it is not clear
exactly what you are doing, because is there is no such notification. (The
notification is called NSControlTextDidEndEditingNotification.) So instead
of playing with notifications, try implementing controlTextDidEndEditing: in
the NSTextField's delegate, and you'll see that you *are* notified on
tabbing out. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Prev by Date: Re: [SOLVED] Unicode strings in ppc and intel
  • Next by Date: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • Previous by thread: Re: NSTextField and controlTextDidEndEditing
  • Next by thread: Detecting Internet
  • Index(es):
    • Date
    • Thread