• 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 and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStepper and NSTextField


  • Subject: Re: NSStepper and NSTextField
  • From: Adam <email@hidden>
  • Date: Tue, 22 Feb 2005 00:06:58 -0500

Yes, as an NSControl the NSStepper has a value that can be changed or read. However, how can I tell when that value has changed? I could have a timer check periodically, but that seams like a lot of overhead. There should be some kind of method that fires when its changed.

Thanks,

Adam

On Feb 21, 2005, at 11:44 PM, Jerry Krinock wrote:

on 05/02/21 17:37, Adam at email@hidden wrote:

but not when the NSStepper updates it. How can I get a method to fire
off when the stepper is clicked, or when the stepper updates the value
in the NSTextField?

From what I remember of this, the stepper has its own "value" variable and
you need to read that and then in your program fire your method if (text
field is > target) || (stepper value > target).


Maybe someday, Apple will implement the NSStepper+NSTextField as one
control; that would make life a lot easier for us.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSStepper and NSTextField
      • From: John Pannell <email@hidden>
  • Prev by Date: What part of DO don't I understand?
  • Next by Date: Re: NSStepper and NSTextField
  • Previous by thread: NSStepper and NSTextField
  • Next by thread: Re: NSStepper and NSTextField
  • Index(es):
    • Date
    • Thread