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

Re: NSTextField sendActionOn:


  • Subject: Re: NSTextField sendActionOn:
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 17 Jan 2010 11:07:38 +0000

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 <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

_______________________________________________

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: 
 >NSTextField sendActionOn: (From: Brad Stone <email@hidden>)
 >Re: NSTextField sendActionOn: (From: Matthew Lindfield Seager <email@hidden>)
 >Re: NSTextField sendActionOn: (From: Brad Stone <email@hidden>)

  • Prev by Date: Re: [iphone] Release Navigation View Controller Question
  • Next by Date: Re: NSTextField sendActionOn:
  • Previous by thread: Re: NSTextField sendActionOn:
  • Next by thread: Re: NSTextField sendActionOn:
  • Index(es):
    • Date
    • Thread