• 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: Martin Hewitson <email@hidden>
  • Date: Thu, 23 Feb 2012 06:55:57 +0000

On Feb 22, 2012, at 09:11 PM, Seth Willits wrote:

> On Feb 19, 2012, at 4: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 don't. You ask for the stepper's value.

The best usage I've found is to have a property in your controller and bind the value of the stepper (and perhaps the associated text box) to the property. You could also then observe changes to the property with KVO, if you so desire.

Martin

>
>
> --
> Seth Willits
>
> _______________________________________________
>
> 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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






_______________________________________________

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>)
 >Re: NSStepper - useless? (From: Seth Willits <email@hidden>)

  • Prev by Date: Determining user's clock preference on iOS
  • Next by Date: ImageCapture + ImageKit problem...
  • Previous by thread: Re: NSStepper - useless?
  • Next by thread: Re: NSStepper - useless?
  • Index(es):
    • Date
    • Thread