Re: Best way to 'open' a file
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