Re: [COCOA] notification of enter/focus event?
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