Re: Reserved NSEvent keys
Re: Reserved NSEvent keys
- Subject: Re: Reserved NSEvent keys
- From: Clark Cox <email@hidden>
- Date: Mon, 27 Dec 2004 18:03:55 -0500
On Mon, 27 Dec 2004 13:55:30 -0800, John Stiles <email@hidden> wrote:
> Looking in NSEvent.h, I see the following:
>
> /* Unicodes we reserve for function keys on the keyboard, OpenStep
> reserves the range 0xF700-0xF8FF for this purpose. The availability of
> various keys will be system dependent. */
> enum {
> NSUpArrowFunctionKey = 0xF700,
> NSDownArrowFunctionKey = 0xF701,
> NSLeftArrowFunctionKey = 0xF702,
> NSRightArrowFunctionKey = 0xF703,
> (etc.)
>
> This should correspond to the Unicode private-use area--so far so good.
> But when I look at unicode.org or in the Mac's Character Palette,
> 0xF700 seems to correspond to some very common characters (Hiragana and
> Katakana, and some small-caps characters, etc.).
>
> My main concern is that I wanted to hijack a few extra values (i.e. in
> the 0xF6xx range) for my application to pass around. Will I run into
> any problems?
If it's just within your own program/programs, you're perfectly safe,
as that's exactly what the Private Use Area is for ... private use :)
Just don't pass them to other applications and expect consistent
treatment.
> It seems safe, if OpenStep/Cocoa can get away with it.
> Anyway, the Hiragana are supposed to be in the 3000 range (see 0x3041).
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
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