views:

31

answers:

1

How can I continuously get data from an NSTextField and do this in the background? I'm doing this because I'm using a quartz composer plugin to get posted values in an NSTextField. This is within the same app.

Any ideas??

Elijah

+1  A: 

I'm not sure what you mean by "continuously", but the controlTextDidChange: delegate method will tell you when the text changes.

JWWalker
Ok, but how do I do like this:theValue = (the text of the text field);So I can then:if (theValue > .001) {(do something)}any ideas?
Elijah W.
If you know that the field contains a number, you can do something like `[theField floatValue]`, since NSTextField is a subclass of NSControl.
JWWalker
Great!! Thanks for your help!! I appreciate it greatly!
Elijah W.