Re: Opening a folder in the Finder from my app
Re: Opening a folder in the Finder from my app
- Subject: Re: Opening a folder in the Finder from my app
- From: Adam Radestock <email@hidden>
- Date: Thu, 26 Oct 2006 16:41:16 +0100
Thanks for the pointers.
I ended up using [NSWorkspace sharedWorkspace] openFile:
Just passed the full path to the folder and it opened it in the Finder!
Thanks again,
Adam Radestock
Glass Monkey Design Co.
On 26 Oct 2006, at 4:13 pm, Stephan Cleaves wrote:
I believe NSWorkspace selectFile:inFileViewerRootedAtPath: is what
you probably want.
This will open the specified file (or folder) in a Finder window.
Stephan
On Oct 26, 2006, at 11:03 AM, Michael Watson wrote:
NSAppleScript? It's kinda hackey, but if there are no other ways,
it does indeed work.
--
mikey
On 26 Oct, 2006, at 10:58, Adam Radestock wrote:
Hi everyone,
I've got an application that uses files stored in it's
Application Support Folder, in the Library, and want the user to
be able to open the folder in the Finder from within my
application, so that they can add files to it easily...
I've looked through the API References for NSFileManager and
LSOpenFSRef, and searched the list archives, but cannot find any
info on opening folders in the Finder from another application.
Is there any way to do this?
Thanks for your help,
Adam Radestock
Glass Monkey Design Co.
_______________________________________________
_______________________________________________
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