• 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: [COCOA] notification of enter/focus event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [COCOA] notification of enter/focus event?


  • Subject: Re: [COCOA] notification of enter/focus event?
  • From: "Henry McGilton (Boulevardier)" <email@hidden>
  • Date: Fri, 11 Dec 2009 21:42:51 -0800

On Dec 11, 2009, at 10:23 AM, Paxton Sanders wrote:

> Sorry if this is a bit too basic, but...
>
> I want to know when the user exits edit fields, so I can check values and provide immediate feedback.  I'm using
> - (void)controlTextDidEndEditing:(NSNotification *)aNotification
> and it works.
>
> I also need to know when a user enters an edit field, so I can provide feedback (like a hint).  I was using
> - (void)controlTextDidBeginEditing:(NSNotification *)aNotification
> but it only works when the user types something.
>
> My question is this: how can I get notification when a user simply enters a field by tabbing to it or mouse-clicking in it (and gives focus to that field)?

How about  -becomeFirstResponder ?

    Cheers,
        . . . . . . . .    Henry


_______________________________________________

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: 
 >[COCOA] notification of enter/focus event? (From: Paxton Sanders <email@hidden>)

  • Prev by Date: -[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash
  • Next by Date: Re: NSNumber stringValue
  • Previous by thread: [COCOA] notification of enter/focus event?
  • Next by thread: Re: [COCOA] notification of enter/focus event?
  • Index(es):
    • Date
    • Thread