Re: NSMenuItem setKeyEquivalentModifierMask not working as expected
Re: NSMenuItem setKeyEquivalentModifierMask not working as expected
- Subject: Re: NSMenuItem setKeyEquivalentModifierMask not working as expected
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 31 Jan 2005 07:44:13 +0100
At 14:53 Uhr +0100 30.01.2005, David Kocher wrote:
That solves the problem. Many thanks!
Btw: Sometimes I am wondering about the API
design; i.e. it would make more sense if it
would be
setKeyEquivalent(char)
instead of
setKeyEquivalent(String)
Nope. That would work for languages that only use
the basic Latin Alphabet, but Unicode does
decomposed character sequences and other things,
which *may* turn a character with an accent into
several. So, if I typed Command-Ü (U with
diaresis) on my German keyboard, what is fed in
might actually be "U¨" which is two characters.
There are other languages for which it's even
more complicated.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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