I am making a simple Twitter update application using MGTwitterEngine
And I can't seem to get the TextField in Interface Builder to clear the text after they click the "update" button. Is there an easy method that I could do this with or something in Interface Builder?
Thanks a lot!
IBOutlet NSTextField *textField;
[textField setStringValue:@""];
[textField display];
I think you also need to define a IBAction method like:
- (IBAction) clearText:(id) sender {
[textField setStringValue:@""];
[textField display];
}
You can now assign a button event (e.g. button down) to this action.
Be aware that it probably isn't when the button is pressed that the NSTextField is cleared, but when the tweet is uploaded.
Else you risk losing the tweet if it couldn't be sent for some reason.
[Not a solution to the direct question, but a solution to follow-up problem...]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With