• 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: Opening a folder in the Finder from my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Opening a folder in the Finder from my app (From: Adam Radestock <email@hidden>)
 >Re: Opening a folder in the Finder from my app (From: Michael Watson <email@hidden>)
 >Re: Opening a folder in the Finder from my app (From: Stephan Cleaves <email@hidden>)

  • Prev by Date: Re: FSCopyAsync Example + Updating UI
  • Next by Date: Re: License file in Document Architecture
  • Previous by thread: Re: Opening a folder in the Finder from my app
  • Next by thread: NSComboBox delegate methods
  • Index(es):
    • Date
    • Thread