• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handling NSWorkspace: -openUrl: message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Intercepting NSPanel's changeFont: message
  • Next by Date: Re: Nib Stripping
  • Previous by thread: Handling NSWorkspace: -openUrl: message?
  • Next by thread: Re: Sending Email with Attachments
  • Index(es):
    • Date
    • Thread