Re: NSTextField sendActionOn:
Re: NSTextField sendActionOn:
- Subject: Re: NSTextField sendActionOn:
- From: Graham Cox <email@hidden>
- Date: Sun, 17 Jan 2010 22:12:46 +1100
On 17/01/2010, at 3:56 PM, Brad Stone wrote:
> I was able to capture the mouseDown event in the field but only in a subclass which is causing me problems elsewhere.
Indeed, a mouse click is not the only reason a field might become focused - the user could tab into it as well.
Overriding -becomeFirstResponder should do it.
Taking a step back though, WHY do you need to get notified here? What are you trying to do? There might be a better way.
--Graham
_______________________________________________
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