Post

Replies

Boosts

Views

Activity

Reply to This method should not be called on the main thread as it may lead to UI unresponsiveness.
Thank you @amervil ! DispatchQueue.global().async { } That is what did it for me! For context: I was trying to run a simple apple script with NSAppleScript(..).executeAndReturnError(). The script was working just fine, but I was also receiving several of those "This method should not be called on the main thread.." errors in the console.
Dec ’23
Reply to This method should not be called on the main thread as it may lead to UI unresponsiveness.
Thank you @amervil ! DispatchQueue.global().async { } That is what did it for me! For context: I was trying to run a simple apple script with NSAppleScript(..).executeAndReturnError(). The script was working just fine, but I was also receiving several of those "This method should not be called on the main thread.." errors in the console.
Replies
Boosts
Views
Activity
Dec ’23