• 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: Read Keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read Keyboard


  • Subject: Re: Read Keyboard
  • From: koko <email@hidden>
  • Date: Thu, 03 Nov 2011 11:48:18 -0600

I agree there is a bigger problem if NSResponder's  or NSWindow's -keyDown:  is not being called.

<any suggestion on where to look for this "problem">


But, I just want to get done and if NSResponder's -flagsChanged: will get the job done,  then great!

Thx.

-koko

On Nov 3, 2011, at 11:39 AM, Conrad Shultz wrote:

> I assume you mean that keyDown: is not called if _only_ a modifier key is pressed. If it's not called for any key press then you have bigger problems.
>
> To answer your question, the method you are looking for is NSResponder's -flagsChanged:.
>
> (Sent from my iPad.)
>
> --
> Conrad Shultz
>
> On Nov 3, 2011, at 10:25, koko <email@hidden> wrote:
>
>> Within a method I want to read the keyboard to look for ctrl or shift being down.  Is this possible?
>>
>> I ask because I first thought to implement keyDown and set a flag for the the key BUT for whatever crazy reason the keyDown for the view is not being called ... the view has been made first responder.
>>
>> Any comments or suggestions would be appreciated.
>>
>> -koko
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please 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
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Read Keyboard
      • From: koko <email@hidden>
References: 
 >Read Keyboard (From: koko <email@hidden>)
 >Re: Read Keyboard (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: Read Keyboard
  • Next by Date: Sandboxing disallows AppleEvents?
  • Previous by thread: Re: Read Keyboard
  • Next by thread: Re: Read Keyboard
  • Index(es):
    • Date
    • Thread