• 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: Launch Email or Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Launch Email or Browser (From: John Nairn <email@hidden>)

  • Prev by Date: Re: Why?
  • Next by Date: Re: Launch Email or Browser
  • Previous by thread: Launch Email or Browser
  • Next by thread: Re: Launch Email or Browser
  • Index(es):
    • Date
    • Thread