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 protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to