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.
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 mails | Author | Date |
|---|---|---|
| Ujwal S. Sathyam | Jan 24, 17:18 | |
| Brian Webster | Jan 24, 20:21 |






Cocoa mail archive

