• 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
Programmatically running a files viewer.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically running a files viewer.


  • Subject: Programmatically running a files viewer.
  • From: Robert Tillyard <email@hidden>
  • Date: Thu, 13 Mar 2003 02:40:07 +0000

I have an application that is sent files from a remote UNIX server. The files may be Word Documents, QuickTime Movies or any other image.

When I receive the files I would like to display them using the correct application, wait until that application quits and then delete the files.

I think NSTask looks like the class for managing most of this.

Would anyone know how I find the correct program to run to view whatever file I need viewed?

One slight complication, because these are transferred from a UNIX system they won't have resource forks but double clicking them does seem to work so there is obviously some kind of default viewer for each file type.

Thanks, Regards, Rob.

---

Bury St. Edmunds, Suffolk, UK.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Programmatically running a files viewer.
      • From: Jan Van Tol <email@hidden>
    • Re: Programmatically running a files viewer.
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Hotkey linker problem
  • Next by Date: Re: Programmatically running a files viewer.
  • Previous by thread: Re: Dictionary keys
  • Next by thread: Re: Programmatically running a files viewer.
  • Index(es):
    • Date
    • Thread