hello,
i am using slider and a text field when i move or drag the slider than i got its value and display in text field
but when i try opposite of this,means enter some value in text field and trying slider move according to this value but
- (void) controlTextDidChange
NSNotification *)obj
event not generated thats why slider not move with text field values .
so please can anyone help me how can i move the slider according to enter value in text field and how can i set the limit in this text filed to enter only numbers and must me less that text length of 4 digit.
please guide me for this.
thanks in advance.
i am using slider and a text field when i move or drag the slider than i got its value and display in text field
Code:
float sliderValue = [ slider floatValue ];
[TextField setStringValue:[NSString stringWithFormat:@"%.1f", sliderValue ]];
but when i try opposite of this,means enter some value in text field and trying slider move according to this value but
- (void) controlTextDidChange
event not generated thats why slider not move with text field values .
so please can anyone help me how can i move the slider according to enter value in text field and how can i set the limit in this text filed to enter only numbers and must me less that text length of 4 digit.
please guide me for this.
thanks in advance.