FROM : Michael Vannorsdel
DATE : Fri May 02 06:19:28 2008
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_removed>
> ";
>
> but this doesn't: NSString *applicationURL = @"mailto:<email_removed>?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?
DATE : Fri May 02 06:19:28 2008
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_removed>
> ";
>
> but this doesn't: NSString *applicationURL = @"mailto:<email_removed>?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?
| Related mails | Author | Date |
|---|---|---|
| Peter Zegelin | May 2, 05:02 | |
| Michael Vannorsdel | May 2, 05:16 | |
| Peter Zegelin | May 2, 06:05 | |
| Andrew Farmer | May 2, 06:18 | |
| Jens Alfke | May 2, 06:19 | |
| Michael Vannorsdel | May 2, 06:19 | |
| Peter Zegelin | May 2, 06:24 |






Cocoa mail archive

