• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to set a TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to set a TextField
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Is a portrait-only launch image possible?
  • Next by Date: Re: How to set a TextField
  • Previous by thread: Re: Is a portrait-only launch image possible?
  • Next by thread: Re: How to set a TextField
  • Index(es):
    • Date
    • Thread