Re: key codes
Re: key codes
- Subject: Re: key codes
- From: Fred Glover <email@hidden>
- Date: Tue, 26 Oct 2004 10:44:17 -0700
Sorry Peter,
I didn't mean to rain on your parade. I like your KeyCaps app and will find it useful outside the XCode environment.
I only meant to show that within XCode there's another nice tool.
Fred
On Oct 26, 2004, at 10:27 AM, Fred Glover wrote:
From: Hidetomo Katsura <email@hidden>
Date: October 24, 2004 11:54:28 PM PDT
To: Jacob Chapa <email@hidden>
Cc: email@hidden
Subject: Re: key codes
On Oct 24, 2004, at 11:42 PM, Jacob Chapa wrote:
is there a list of key codes floating around somewhere?
I want the key code for the apostrophe AKA single quote( ' ) key.
http://developer.apple.com/documentation/mac/Text/Text-571.html#HEADING571-0
the key code for a single-quote key with the US keyboard layout on an ANSI keyboard is 39.
katsura
and
From: Peter Maurer <email@hidden>
Date: October 25, 2004 12:29:26 AM PDT
To: Jacob Chapa <email@hidden>
Cc: CocoaDev <email@hidden>
Subject: Re: key codes
is there a list of key codes floating around somewhere?
I want the key code for the apostrophe AKA single quote( ' ) key.
You can also use this little dev tool that I've written for my own purposes. It will quit when you close its window.
I'm curious if the attached sit archive is small enough to make it into the list. IIRC, there was a size limit, right?
Best regards,
Peter Maurer.
<Key Codes.app.sit>
It's already built into X-Code (1.5 anyway)
Main menu
Format -> Font -> Show Fonts will give you the Font palette. At the lower left there's the little contextual menu item. Hold it down and select Characters...
You can get the info on any character in the entire Unicode set. If you select a character and hold the cursor over it you'll get a hint with the Unicode Hex value (key code). For _'_ apostrophe, it's 27 (e.g. 39 decimal). you get the Unicode and UTF8 values.
It's worth exploring for all the CUTE stuff you can do, including characters to put into buttons as "icons".
Of course you can "Insert" any character right into your XCode cursor location. I just put a chinese ideograph character into a document window's "stop" button for fun and games.
Fred
Fred Glover
Machine Vision and Image Processing Engineering
Visicon Inc
www.visiconeng.com
Los Gatos, CA
408 354-0095
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden