• 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: Best way to 'open' a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to 'open' a file


  • Subject: Re: Best way to 'open' a file
  • From: j o a r <email@hidden>
  • Date: Wed, 20 Oct 2004 01:22:45 +0200

The command line tool "open" uses -[NSWorkspace openFile:] from AppKit (probably...), and so can you! :)

j o a r

On 2004-10-20, at 01.14, Chad Armstrong wrote:

In Cocoa, what is the recommended way to try and 'open' a file. If I am at the command line and type: open some_file_name, then the file will generally open with its associated default program (MS Word, Safari, TextEdit, etc.). I want to try and use this same default behavior to open a file, but not necessarily have to specify which application, such as specifying BBEdit to open up a .txt file.

I've used the method to open a file using a particular application, so I'm trying to see if there is a more general approach to this problem.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Best way to 'open' a file
      • From: John Stiles <email@hidden>
References: 
 >Best way to 'open' a file (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Best way to 'open' a file
  • Next by Date: Re: Generating warning on particular build style
  • Previous by thread: Re: Best way to 'open' a file
  • Next by thread: Re: Best way to 'open' a file
  • Index(es):
    • Date
    • Thread