Re: Launch Email or Browser
Re: Launch Email or Browser
- Subject: Re: Launch Email or Browser
- From: Ryan Stevens <email@hidden>
- Date: Thu, 16 May 2002 12:21:34 -0700
On Thursday, May 16, 2002, at 11:47 AM, Douglas Davidson wrote:
On Thursday, May 16, 2002, at 11:11 AM, John Nairn wrote:
I want to launch email program (with message started to person with
subject and body filled in) and to launch a browser to open a web
site. I assume it is easy, but browsing through Apple's documention, I
am not sure where to look. Is there sample code? Or what NSObject is
used?
I would suggest trying -[NSWorkspace openURL:].
More specifically, try...
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"
mailto:email@hidden?subject=A Subject&body=A URL Encoded Body.
"]];
And...
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"http:// ... "]];
_______________________________________________
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.