Re: responding to NSStepper clicks
Re: responding to NSStepper clicks
- Subject: Re: responding to NSStepper clicks
- From: Mike Abdullah <email@hidden>
- Date: Thu, 15 Dec 2011 15:17:35 +0000
NSStepper is a subclass of NSControl. Hook up its action/target to be notified when it's adjusted.
On 15 Dec 2011, at 13:16, Koen van der Drift wrote:
> I've set up an NSStepper/NSTextField combination to control myInt in
> my model. I have bound the value of myInt to both outlets, and when I
> click the stepper, the value of myInt in the textfield changes
> accordingly. All good. I've set up the delegate controlTextDidChange,
> and my model changes when I change the number in the textfield. But
> how do I respond to a change made by clicking on the stepper? There is
> no equivalent delegate method, and controlTextDidChange is not called
> when the value in the textfield changes by clicking the stepper?
>
> - Koen.
> _______________________________________________
>
> 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
_______________________________________________
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