• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Speaking of interface builder bug's.. NSButton Equiv: is wrong
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Speaking of interface builder bug's.. NSButton Equiv: is wrong
      • From: Henri Lamiraux <email@hidden>
References: 
 >Bug in Interface Builder concerning Drawers at the Bottom (From: "Florian G. Pflug" <email@hidden>)
 >Re: Bug in Interface Builder concerning Drawers at the Bottom (From: Vince DeMarco <email@hidden>)
 >Re: Bug in Interface Builder concerning Drawers at the Bottom (From: "Florian G. Pflug" <email@hidden>)

  • Prev by Date: Re: Authorization.h
  • Next by Date: Re: Weird SIGBUS errors
  • Previous by thread: Re: Bug in Interface Builder concerning Drawers at the Bottom
  • Next by thread: Re: Speaking of interface builder bug's.. NSButton Equiv: is wrong
  • Index(es):
    • Date
    • Thread