• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
making a Cocoa view not grab the keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

making a Cocoa view not grab the keyboard


  • Subject: making a Cocoa view not grab the keyboard
  • From: Artemiy Pavlov <email@hidden>
  • Date: Tue, 27 Mar 2007 22:51:38 +0300

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:
This email sent to email@hidden


  • Prev by Date: Re: Building Audio Unit with Cocoa View without parameters
  • Next by Date: ExtAudioFileRead giving sawtooth-like data back
  • Previous by thread: Re: Building Audio Unit with Cocoa View without parameters
  • Next by thread: ExtAudioFileRead giving sawtooth-like data back
  • Index(es):
    • Date
    • Thread