• 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: sending Apple event from Cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending Apple event from Cocoa application


  • Subject: Re: sending Apple event from Cocoa application
  • From: Jeff Harrell <email@hidden>
  • Date: Thu, 26 Jun 2003 18:55:12 -0500

On Thursday, June 26, 2003, at 05:59 PM, Thomas Finley wrote:

[[NSWorkspace sharedWorkspace] noteFileSystemChanged:@"/path/to/new/stuff"];

As it turns out, this is *exactly* what I needed. I had seen this method before, but I thought it was a leftover from the NeXT days and that it didn't apply to the Finder. I was wrong.

Thanks!

(For the archives: the aforementioned message, possibly among other things, tells the Finder to refresh any open windows that show the item referred to by the path given as the argument. If the path points to a file or folder on the Desktop, the Desktop gets refreshed as well. It's downright spiffy. And a hell of a lot easier than that Apple Event stuff.)

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.

  • Prev by Date: Re: WWDC 2002 videos
  • Next by Date: Cocoa Java Memory Leak?
  • Previous by thread: sending Apple event from Cocoa application
  • Next by thread: Re: WWDC 2002 videos
  • Index(es):
    • Date
    • Thread