Re: NSStepper and NSTextField
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