• 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
RE: Yet another newbie....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Yet another newbie....


  • Subject: RE: Yet another newbie....
  • From: "Adam Knight" <email@hidden>
  • Date: Tue, 31 Jul 2001 11:32:31 -0500

> After going through the "Currency Converter" tutorial twice, I decided
> to try applying that stuff to my very own trial project - a simple
> calculator.
> Things went pretty well. I got the interface up and wrote my action
> methods and now have a working calculator. Very exciting. The problem,
> at least the one I'm trying to solve now, is I want to capture the
> keyboard input of the +,-, *, and / keys so I can trigger those math
> operations without using the mouse (and hopefully prevent them from
> writing to the textField).

An alternative to this is what I did for my calculator project: in IB just set
the associated key for the button to the symbol. Then when "+" is pressed,
the button "+" will call its attached method as if it were pressed. No need
to go playing with keyDown events and if your button code is working, then
this is an instant fix.
--
____________________________________________________________________________
Adam Knight
______________________________Codito, ergo sum______________________________


  • Prev by Date: Re: Searchable archives (was: Dumb Newbie Question...)
  • Next by Date: RE: Adding Items to the Dock?
  • Previous by thread: Re: Yet another newbie....
  • Next by thread: Re: Simple question. I guess...
  • Index(es):
    • Date
    • Thread