• 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
Space Bar Event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Space Bar Event


  • Subject: Space Bar Event
  • From: Keith Duncan <email@hidden>
  • Date: Wed, 2 Jan 2008 20:59:43 +0000

This seems like it should be trivial but I can't find an elegant solution. I need to detect the space bar being pushed.

I've searched the archives and other than performing ! NSEqualRanges([[event characters] rangeOfString:@" "], (NSRange){0, 0}) there doesn't seem to be any other way of reliably detecting it.

There is no unicode defined for it in the NSEvent header and there is no NSResponder method either. There must be a better way of doing this.

Keith
_______________________________________________

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: Space Bar Event
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Next by Date: Re: Space Bar Event
  • Previous by thread: Re: Selections and NSCollectionView
  • Next by thread: Re: Space Bar Event
  • Index(es):
    • Date
    • Thread