Skip navigation.
 
mlRe: How Do You Open Default Web Browser and goto URL?
FROM : Jens Alfke
DATE : Fri May 02 06:19:05 2008

On 1 May '08, at 9:05 PM, Peter Zegelin wrote:

> 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?


Spaces aren't legal in URLs, so the NSURL object you're getting is 
nil. You have to URL-encode the subject string, calling -
stringByAddingPercentEscapesUsingEncoding:.

—Jens

Related mailsAuthorDate
mlHow Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 05:02
mlRe: How Do You Open Default Web Browser and goto URL? Michael Vannorsdel May 2, 05:16
mlRe: How Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 06:05
mlRe: How Do You Open Default Web Browser and goto URL? Andrew Farmer May 2, 06:18
mlRe: How Do You Open Default Web Browser and goto URL? Jens Alfke May 2, 06:19
mlRe: How Do You Open Default Web Browser and goto URL? Michael Vannorsdel May 2, 06:19
mlRe: How Do You Open Default Web Browser and goto URL? Peter Zegelin May 2, 06:24