On 17 Jan 2010, at 04:56, Brad Stone wrote:

> 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.
> 
If subclassing is out (for whatever) and your OS X target is 10.6 then you 
could try observing NSWindow firstResponder.
Subclassing is the way to go though IMHO.

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com
> On Jan 16, 2010, at 3:08 PM, Matthew Lindfield Seager wrote:
> 
>> On Sunday, January 17, 2010, Brad Stone <cocoa-...@softraph.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com
> 
> This email sent to jonat...@mugginsoft.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to