Re: Handling NSWorkspace: -openUrl: message?
Re: Handling NSWorkspace: -openUrl: message?
- Subject: Re: Handling NSWorkspace: -openUrl: message?
- From: Brian Webster <email@hidden>
- Date: Fri, 24 Jan 2003 13:21:37 -0600
On Friday, January 24, 2003, at 11:44 AM,
email@hidden wrote:
Hello, I am working on an mail app that will receive a "NSWorkspace:
-openURL:" message to open a mail composer window. What does the app
need to implement to handle that correctly? Right now, my app gets
launched or made active (if already running), but then nothing
happens. The app is set to be the default mail client.
You need to set up an Apple event handler to handle the GetURL event
that gets sent to your app to handle this. Take a look an
NSAppleEventManager for setting up an event handler. The event class
and ID you want are kAEInternetSuite and kAEISGetURL. You can also
probably find more info by searching the list archives at
cocoa.mamasam.com.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.