Re: NSStepper - useless?
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