Re: Launch Email or Browser
Re: Launch Email or Browser
- Subject: Re: Launch Email or Browser
- From: John Blackburn <email@hidden>
- Date: Thu, 16 May 2002 11:38:40 -0700
I don't know about auto-filling-in the subject and body, but here are
two basic utility methods:
- (void)openWebPage:(NSString*)webPageURL
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:webPageURL]];
}
- (void)createEmail:(NSString*)emailAddress
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:[@"
mailto:" stringByAppendingString:emailAddress]]];
}
John Blackburn
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?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu
_______________________________________________
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.
_______________________________________________
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.