[Openmcl-devel] Key Codes in OpenMCL
bfulg at pacbell.net
Mon Jan 15 07:41:03 UTC 2007
On Jan 14, 2007, at 3:03 PM, Gary Byers wrote:
> Cocoa uses a private-use range of the Unicode code space (#\uf700-#
> to name characters produced by function keys. Giving the character
> code is #xf700 (= #$NSUpArrowFunctionKey) a name like
> might make a little bit of sense, since there's at least some context
> in which #xf700 is used as a character code (e.g., in the NSString
> returned by -[NSEvent characters].
Yes; this is the context I'm looking at presently.
> And yes: there should be some user-visible way of naming characters.
> (What's there now isn't thread-safe - just intended to run in the
> initial thread during the cold load - and isn't opaque enough.)
> I don't think that such a mechanism should be used to confuse Carbon
> event codes with CHAR-CODEs.
So for now, it sounds like I should just add some openmcl reader
macro guards and hard-code the character code values until something
changes in the implementation. Right?
More information about the Openmcl-devel