• 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
Re: All Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: All Keys


  • Subject: Re: All Keys
  • From: June Van Dyke <email@hidden>
  • Date: Sun, 09 Feb 2003 07:24:18 -0500

On 2/9/03 6:24 AM, "email@hidden" <email@hidden> wrote:

> Is there a way in a Cocoa app to capture ALL the key events.
> Including CMD-Tab and Option-Tab?
>
> If not, do you know of any other way for an application to capture
> all key events? Games do it so there must be a way.
>
> Thank you for all the help.
> SDerman.

I believe the way that games end up doing it is with a shielding window.
This blocks keyboard app switching, however, the game never actually gets
the event.
--

-- sinclair44

[self becomeWorldDictator];

- (void)becomeWorldDictator
{
[[world currentLeaders] assassinate];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >All Keys (From: email@hidden)

  • Prev by Date: All Keys
  • Next by Date: Re: NSTextView && keyboard
  • Previous by thread: All Keys
  • Next by thread: -init is not being called on my custom class
  • Index(es):
    • Date
    • Thread