• 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
Re: How to update UI from a background thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to update UI from a background thread (From: Dave <email@hidden>)
 >Re: How to update UI from a background thread (From: Sandor Szatmari <email@hidden>)
 >Re: How to update UI from a background thread (From: Dave <email@hidden>)
 >Re: How to update UI from a background thread (From: Dave <email@hidden>)

  • Prev by Date: Re: Stupid objective-c question
  • Next by Date: Re: Triggering a segue from code
  • Previous by thread: Re: How to update UI from a background thread
  • Next by thread: Re: How to update UI from a background thread
  • Index(es):
    • Date
    • Thread