Re: NSStepper and NSTextField
Re: NSStepper and NSTextField
- Subject: Re: NSStepper and NSTextField
- From: John Pannell <email@hidden>
- Date: Mon, 21 Feb 2005 22:13:15 -0700
I found this helpful thread in the archives, and implemented the
recommended steps (you'll probably want to read the whole thread).
http://www.cocoabuilder.com/archive/message/2002/12/13/72616
Hope this helps!
John
On Feb 21, 2005, at 10:06 PM, Adam wrote:
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:
email@hidden
This email sent to email@hidden
_______________________________________________
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