Speaking of interface builder bug's.. NSButton Equiv: is wrong
Speaking of interface builder bug's.. NSButton Equiv: is wrong
- Subject: Speaking of interface builder bug's.. NSButton Equiv: is wrong
- From: Charles Bennett <email@hidden>
- Date: Mon, 05 Nov 2001 21:20:31 -0500
I just happened to be programmatically modifying a NSButton's
key equivalent via setKeyEquivalent: and noticed that
IB incorrectly display's "\N" as the key for "Return" in the
NSButton Info under Tools (inspector)
First, if you assign it programatically you must use @"\r" (of course)
so IB is wrong on two counts.. showing \N is the wrong character and the
wrong case.
Just try [someButton setKeyEquivalent:@"\N"]. Of course it doesn't work
and it causes the compiler to generate a (valid) warning that \N isn't a
control code.
HOWEVER IB does do the right thing behind the "screen" because asking a NSButton
that IB set to "Return" via a call to [somebutton getKeyEquivalent] will return
a "\r".
It's just a minor little bug..
I did report it.
chuck