Re: NSTextField not getting mouseDown
Re: NSTextField not getting mouseDown
- Subject: Re: NSTextField not getting mouseDown
- From: Sander Stoks <email@hidden>
- Date: Thu, 22 Oct 2009 20:06:47 +0200
On Oct 22, 2009, at 4:17 PM, Graham Cox wrote:
What you want is to remove all this stuff and look at [NSPanel
setBecomesKeyOnlyIfNeeded:] which deals with whatever is necessary
for you. Standard text fields and so on should then work properly.
Duh. That was indeed what I needed to do. My stupidity lies in the
fact that I had already tried this and didn't get it to work (and had
thus decided to take a different approach), but that was because I had
already overridden canBecomeKeyWindow to always return NO and had
forgotten about that.
Thanks,
Sander
_______________________________________________
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