How to set a TextField
How to set a TextField
- Subject: How to set a TextField
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 14 Mar 2016 13:50:12 +0700
I have a String message1, bound to TextField textField1. (OS X 10.10.5).
- (void)computeSomething
{
self.message1 = @“Start computing”;
// some seconds of computations
self.message1 = @“Result = 42”;
}
This never shows “Start computing”.
(same problem with self. textField1.stringValue = @“Start computing”;)
This rather ugly hack works:
self.message1 = @“Start computing”;
// 0.01 ok; 0.001 mostly ok; 0.0001 too small
[ self performSelector: @selector(computeSomething) withObject: nil afterDelay: 0.01 ];
Is there a better way (without this rather arbitrary delay)?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden