Re: Best way to 'open' a file
Re: Best way to 'open' a file
- Subject: Re: Best way to 'open' a file
- From: Andrew Zamler-Carhart <email@hidden>
- Date: Wed, 20 Oct 2004 01:19:07 +0100
And if you don't like the way that NSWorkspace wraps Launch Services,
Nathan Day has written a more robust wrapper:
http://homepage.mac.com/nathan_day/pages/source.html#NDLaunchServices
In particular, this is useful if you want to open several files at the
same time.
Andrew
On Oct 20, 2004, at 12:33 AM, John Stiles wrote:
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:
email@hidden
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
_______________________________________________
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