• 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: Reveal in Finder Sample Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Reveal in Finder Sample Code
      • From: Nathan Day <email@hidden>
References: 
 >Reveal in Finder Sample Code (From: Michael Briscoe <email@hidden>)
 >Re: Reveal in Finder Sample Code (From: Henry Maddocks <email@hidden>)
 >Re: Reveal in Finder Sample Code (From: Evan Schoenberg <email@hidden>)
 >Re: Reveal in Finder Sample Code (From: Paul Bissex <email@hidden>)

  • Prev by Date: Re: [Solved]Binding Tableviews (newbie) problems/questions
  • Next by Date: Finding the sender of an AppleEvent in Cocoa app on 10.2.8 or greater
  • Previous by thread: Re: Reveal in Finder Sample Code
  • Next by thread: Re: Reveal in Finder Sample Code
  • Index(es):
    • Date
    • Thread