Re: Reveal in Finder Sample Code
Re: Reveal in Finder Sample Code
- Subject: Re: Reveal in Finder Sample Code
- From: Greg Robbins <email@hidden>
- Date: Fri, 14 Jan 2005 11:23:13 -0800
> What are the advantages/disadvantages of using the apple event versus
using the NSWorkspace method (which I, too, normally use with no
problems)?
The only difference I saw when I switched our app from the AE method
to the NSWorkspace method was that it worked more or less
instantaneously, instead of the small but irritating delay present
with the AE method.
I've not seen a delay with either method.
The NSWorkspace method used to always display the file icon in a
Next-style browser view rather than the proper view for the Finder
window.
A quick test shows me that 10.3's
selectFile:inFileViewerRootedAtPath: now displays the Finder icons in
the proper view, so they should be equivalent so long as you only
want one icon selected. If you want to show and select multiple
items, you need to send the Apple event (and use a list of file
aliases as the parameter for the event.)
Greg
_______________________________________________
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