• 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: NSTask Open Word File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask Open Word File


  • Subject: Re: NSTask Open Word File
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 12 Aug 2016 13:57:42 -0400

> On Aug 11, 2016, at 6:20 PM, Gurkan Erdogdu <email@hidden> 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@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: 
 >NSTask Open Word File (From: Gurkan Erdogdu <email@hidden>)

  • Prev by Date: Re: Xcode 8 - XCODE_VERSION_MAJOR causes compilation issue
  • Next by Date: How to transfer GPSPosition from one movie file to another one
  • Previous by thread: Re: NSTask Open Word File
  • Next by thread: Bug in 10.12 drawing glyph from labelFont or systemFont with bezier path
  • Index(es):
    • Date
    • Thread