sending Apple event from Cocoa application
sending Apple event from Cocoa application
- Subject: sending Apple event from Cocoa application
- From: Jeff Harrell <email@hidden>
- Date: Thu, 26 Jun 2003 17:32:33 -0500
I'm *sure* this is a FAQ, but I have spent the better part of the day
looking for an answer and haven't found one.
According to an Apple Technical QA 1260[1], the right way to tell the
Finder about a newly created file is to send it a kAESync event.
I'm darned if I can figure out how to do this from a Cocoa application.
It seems that there are a set of Foundation classes related to Apple
events (NSAppleEventDescriptor, and others), but the documentation
surrounding them seems to be heavy on information about how to compile
and execute AppleScript commands, but light on how to send Apple
events. I have thus far been unable to find a reference that tells me,
"Here's how you send an Apple event to the Finder, one, two, three."
And I'm thinking that surely there must be such a reference; I mean,
every program that creates files has to do this!
Can anybody point me in the right direction?
[1]
http://developer.apple.com/qa/qa2001/qa1260.html
--
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.