Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a custom view not grab the keyboard



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: making a custom view not grab the keyboard (From: "E. Wing" <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Artemiy Pavlov <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Daniel Jalkut <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Artemiy Pavlov <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.