Skip navigation.
 
mlRe: Handling NSWorkspace: -openUrl: message?
FROM : Brian Webster
DATE : Fri Jan 24 20:21:37 2003

On Friday, January 24, 2003, at 11:44  AM,
<email_removed> 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_removed>
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlHandling NSWorkspace: -openUrl: message? Ujwal S. Sathyam Jan 24, 17:18
mlRe: Handling NSWorkspace: -openUrl: message? Brian Webster Jan 24, 20:21