• 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: "I. Savant" <email@hidden>
  • Date: Thu, 26 Oct 2006 11:33:09 -0400


Or just -openFile: (passing a folder path) ... NSWorkspace will do the right thing.


--
I.S.


On Oct 26, 2006, at 11:13 AM, 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:
40gmail.com


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
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: MAC Software Development
  • Next by Date: Re: FSCopyAsync Example + Updating UI
  • Previous by thread: Re: Opening a folder in the Finder from my app
  • Next by thread: Re: Opening a folder in the Finder from my app
  • Index(es):
    • Date
    • Thread