Re: NSTextField sendActionOn:
Re: NSTextField sendActionOn:
- Subject: Re: NSTextField sendActionOn:
- From: Brad Stone <email@hidden>
- Date: Sat, 16 Jan 2010 23:56:47 -0500
I tried that (textDidBeginEditing) but it fires only after the user hits a key to begin typing, not when they first enter the field (i.e. the action that makes the focus ring show up). I want to be notified as soon as the user clicks in the field to get the cursor in there. I was able to capture the mouseDown event in the field but only in a subclass which is causing me problems elsewhere.
On Jan 16, 2010, at 3:08 PM, Matthew Lindfield Seager wrote:
> On Sunday, January 17, 2010, Brad Stone <email@hidden> wrote:
>> The best I can do for the NSTextField is bind an action and in, IB, in the TextFieldAttributes set "Action" to "Sent on End Editing" which sends the action after the first character is type. I want the action sent as soon as the field gains focus.
>
> Googling "nstextfield begin editing notification" without the quotes
> takes one straight to the fine manual. See textDidBeginEditing in
> particular.
>
> Hope that is what you are after.
>
> Regards,
> Matt
_______________________________________________
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