Mailing Lists: Apple Mailing Lists

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

making a Cocoa view not grab the keyboard



Hello all!

I have a plug-in that uses a Cocoa view. In hosts like GarageBand and Logic, the view grabs the keyboard, so you need to click on the host window to be able to control it with the keyboard. However, Apple's Cocoa plugins that seem to be also using Cocoa view do not grab the keyboard.

I've done some reading an I added the following to my view's @implementation:

- (BOOL)canBecomeKeyView{
	return NO;	
}

- (BOOL) acceptsFirstResponder{
	return NO;
}

However, my view still grabs the keyboard.

Can anyone please suggest me where to look?


Thanks very much,

Artemiy.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to 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.