Those URLs usually need escapes to work. Try running the URL through
CFURLCreateStringByAddingPercentEscapes before sending the NSWorkspace.
On May 1, 2008, at 10:05 PM, 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 PROTECTED]
";
but this doesn't: NSString *applicationURL = @"mailto:[EMAIL PROTECTED]
- 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?
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]