• 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: Show a file in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show a file in Finder


  • Subject: Re: Show a file in Finder
  • From: Alex Rice <email@hidden>
  • Date: Wed, 26 Mar 2003 14:44:13 -0700

On Wednesday, March 26, 2003, at 02:29 PM, Giovanni Donelli wrote:

I have a code that open the folder in which the file is placed but how to tell the finder to select a file?

Here is one way

NSWorkspace *ws = [NSWorkspace sharedWorkspace];
[ws selectFile: @"filename..." inFileViewerRootedAtPath:nil];

Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Show a file in Finder (From: Giovanni Donelli <email@hidden>)

  • Prev by Date: Re: [OT] Subversion
  • Next by Date: Re: [OT] Subversion
  • Previous by thread: Show a file in Finder
  • Next by thread: Mysterious Build Error
  • Index(es):
    • Date
    • Thread