Re: How to update UI from a background thread
Re: How to update UI from a background thread
- Subject: Re: How to update UI from a background thread
- From: Shane Stanley <email@hidden>
- Date: Fri, 23 Sep 2016 10:40:26 +1000
On 22 Sep. 2016, at 10:20 pm, Dave <email@hidden> wrote:
>
> myNetworkleScriptSourceString = [[NSString alloc] initWithContentsOfFile:myNetworkleScriptFilePath encoding:NSUTF8StringEncoding error:&myErrorInfo];
> if (myErrorInfo != nil)
You should be testing for !myNetworkleScriptSourceString; you shouldn't touch myErrorInfo unless myNetworkleScriptSourceString is nil.
> [myNetworkleScript executeAndReturnError:&myErrorDictionary];
> if (myErrorDictionary != nil)
Check the result of executeAndReturnError: first.
> So I’m wondering if it is something to do with the AppleScript handling?
What happens if you just comment out the execution line? (My guess is it will make no difference.)
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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