Re: Speaking of interface builder bug's.. NSButton Equiv: is wrong
Re: Speaking of interface builder bug's.. NSButton Equiv: is wrong
- Subject: Re: Speaking of interface builder bug's.. NSButton Equiv: is wrong
- From: Henri Lamiraux <email@hidden>
- Date: Mon, 5 Nov 2001 21:12:44 -0800
I don't have the next IB release in front of me but I am pretty sure we
have already fixed this.
On Monday, November 5, 2001, at 06:20 PM, Charles Bennett wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple