> 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.
-
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
>>> {
>>>
> 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,
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
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