Re: How to set a TextField

2016-03-14 Thread Pascal Bourguignon
> On 14 Mar 2016, at 09:17, Gerriet M. Denkmann wrote: > > You are absolutely right that a background would be the right thing. > But this is just a small tool for testing, and it will not take more than a > few seconds, so I am trying to avoid this. For testing you can use NSLog instead. -

Re: How to set a TextField

2016-03-14 Thread Alex Zavatone
Just do the calculation within a dispatch_async within computeSimething. On Mar 14, 2016, at 4:17 AM, Gerriet M. Denkmann wrote: > >> On 14 Mar 2016, at 14:17, Quincey Morris >> wrote: >> >> On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: >>> >>> - (void)computeSomething >>> { >>>

Re: How to set a TextField

2016-03-14 Thread Gerriet M. Denkmann
> On 14 Mar 2016, at 14:17, Quincey Morris > wrote: > > On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: >> >> - (void)computeSomething >> { >> self.message1 = @“Start computing”; >> // some seconds of computations >> self.message1 = @“Result = 42”; >> } > > Assume,

Re: How to set a TextField

2016-03-14 Thread Quincey Morris
On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: > > - (void)computeSomething > { > self.message1 = @“Start computing”; > // some seconds of computations > self.message1 = @“Result = 42”; > } Assume, conceptually, that drawing only takes place asynchronously (that is

How to set a TextField

2016-03-13 Thread Gerriet M. Denkmann
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. textF