• 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: NSStepper - useless?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStepper - useless?


  • Subject: Re: NSStepper - useless?
  • From: Keary Suska <email@hidden>
  • Date: Wed, 22 Feb 2012 16:31:37 -0700

On Feb 19, 2012, at 5:11 PM, William Squires wrote:

> Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked?

You can't, at least not specifically, on both counts. All the stepper does is increment or decrement a numeric value. That's it. If you keep track of the last value set, you can determine whether the value went up or down, which would indicate which button was pressed.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >NSStepper - useless? (From: William Squires <email@hidden>)

  • Prev by Date: Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?
  • Next by Date: Re: NSTextView and -becomeFirstResponder
  • Previous by thread: Re: NSStepper - useless?
  • Next by thread: Re: NSStepper - useless?
  • Index(es):
    • Date
    • Thread