Re: sending Apple event from Cocoa application
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.