Re: How Do You Open Default Web Browser and goto URL?
Re: How Do You Open Default Web Browser and goto URL?
- Subject: Re: How Do You Open Default Web Browser and goto URL?
- From: Andrew Farmer <email@hidden>
- Date: Thu, 1 May 2008 21:18:56 -0700
On 01 May 08, at 21:05, Peter Zegelin wrote:
Thanks - I have got it to work in both cases except where I add a
subject to the mailto:
This works: NSString *applicationURL = @"mailto:email@hidden
";
but this doesn't: NSString *applicationURL = @"mailto:email@hidden?subject=AlphaDraw
- Require Registration Help ";
into: [[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:applicationURL]];
If I shorten the Subject to just subject=AlphaDraw it works but it
looks like any spaces are causing the method to fail.
Any suggestions what may be wrong?
You need to URL-encode the subject.
NSString *applicationURL = @"mailto:email@hidden?subject=AlphaDraw - Require Registration Help
"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden