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 12:51:45 +0100
At 11:32 Uhr +0100 31.01.2005, David Kocher wrote:
On 31. Jan 2005, at 07:44, M. Uli Kusterer wrote:
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.
But one can specify unicode characters with
'\uu00FC', no? Probably this is not the same in
obj-c.
That's not important in this case, as it still
would only be one character, while the above
examples would be *two* Unicode characters.
--
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