Re: Best way to 'open' a file
Re: Best way to 'open' a file
- Subject: Re: Best way to 'open' a file
- From: John Stiles <email@hidden>
- Date: Tue, 19 Oct 2004 16:33:01 -0700
I would have thought that the command line tool uses Launch Services
directly (which is what NSWorkspace is wrapping).
On Oct 19, 2004, at 4:22 PM, j o a r wrote:
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
_______________________________________________
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