Re: making a custom view not grab the keyboard
Re: making a custom view not grab the keyboard
- Subject: Re: making a custom view not grab the keyboard
- From: Andy Lee <email@hidden>
- Date: Tue, 27 Mar 2007 18:05:20 -0400
On Mar 27, 2007, at 5:46 PM, Artemiy Pavlov wrote:
I assumed the parent of this view is the view factory, but
overriding these methods for it did not help. I guess I need to
"contact" the parent window somehow, and give it the focus. Or,
contact the mainBundle (is it the host app itself?) and tell it to
grab the keyboard back... Any ideas?
Can you make a very small project that demonstrates the problem, and
post it?
How do you know your view is grabbing the keyboard -- is it reflected
in the display, or are you assuming so because the host window does
*not* get keyboard events?
Have you confirmed that your overrides of -canBecomeKeyView and -
acceptsFirstResponder are actually getting called, perhaps with NSLog
statements?
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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