0

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

objectiveccoder001
  • 2,981
  • 10
  • 48
  • 72

1 Answers1

1

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

JWWalker
  • 22,385
  • 6
  • 55
  • 76
  • 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? – objectiveccoder001 Jul 04 '10 at 01:09
  • If you know that the field contains a number, you can do something like `[theField floatValue]`, since NSTextField is a subclass of NSControl. – JWWalker Jul 04 '10 at 02:00