> On Aug 11, 2016, at 6:20 PM, Gurkan Erdogdu <[email protected]> wrote:
> 
> Hi folks
> In my Swift application, I try to open a Word file with Microsoft Word 
> application via NSTask. 

To add to what Charles said: NSTask is only for running command-line tools or 
other non-GUI binaries. Don’t use it to run a GUI app; there are a number of 
reasons why that won’t work. Apps need to be launched via LaunchServices, which 
is what NSWorkspace does.

—Jens
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to