• 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: responding to NSStepper clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: responding to NSStepper clicks
      • From: Koen van der Drift <email@hidden>
References: 
 >responding to NSStepper clicks (From: Koen van der Drift <email@hidden>)

  • Prev by Date: responding to NSStepper clicks
  • Next by Date: Mysterious "File exists" message logged to console
  • Previous by thread: responding to NSStepper clicks
  • Next by thread: Re: responding to NSStepper clicks
  • Index(es):
    • Date
    • Thread