Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 9:52 PM, Steve Christensen wrote: stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding Yeah, I just found that method about an hour ago! Not related to Cocoa -- but It turns out after playing around with this with mapquest and google maps, adding a label can ch

Re: Malformed URL string in openURL

2011-06-07 Thread Steve Christensen
On Jun 7, 2011, at 6:32 PM, James Merkel wrote: > On Jun 7, 2011, at 6:20 PM, Jens Alfke wrote: > >> On Jun 7, 2011, at 6:17 PM, James Merkel wrote: >> >>> The following works ok: >>> >>> NSString * mapquestURLString; >>> >>> mapquestURLString = [NSString >>> stringWithString:@"http://mapq.st

Re: Malformed URL string in openURL

2011-06-07 Thread Howard Siegel
On Tue, Jun 7, 2011 at 18:20, Jens Alfke wrote: > > On Jun 7, 2011, at 6:17 PM, James Merkel wrote: > > > mapquestURLString = [NSString stringWithString:@" > http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916(Test point label)”]; > > It’s not the parens that are illegal, it’s the spaces. Change

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 6:20 PM, Jens Alfke wrote: On Jun 7, 2011, at 6:17 PM, James Merkel wrote: The following works ok: NSString * mapquestURLString; mapquestURLString = [NSString stringWithString:@"http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916 "]; (Just FYI, the -stringWithString c

Re: Malformed URL string in openURL

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 6:17 PM, James Merkel wrote: > The following works ok: > > NSString * mapquestURLString; > > mapquestURLString = [NSString > stringWithString:@"http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916";]; (Just FYI, the -stringWithString call is redundant. You can just assign th

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 5:39 PM, Jens Alfke wrote: On Jun 7, 2011, at 4:42 PM, James Merkel wrote: I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I take out the ( ) characters NSWorkspace then

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 5:06 PM, Jeffrey Walton wrote: On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton wrote: On Tue, Jun 7, 2011 at 7:42 PM, James Merkel wrote: I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by

Re: Malformed URL string in openURL

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 4:42 PM, James Merkel wrote: > I am sending a URL string to NSWorkspace's openURL method that has the > bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I > take out the ( ) characters NSWorkspace then opens the URL, so I guess > NSWorkspace conside

Re: Malformed URL string in openURL

2011-06-07 Thread Jeffrey Walton
On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton wrote: > On Tue, Jun 7, 2011 at 7:42 PM, James Merkel wrote: >> I am sending a URL string to NSWorkspace's  openURL method that has the >> bracket characters ( ) in it. The URL can't be opened by  NSWorkspace. If I >> take out the ( ) characters NSWo

Re: Malformed URL string in openURL

2011-06-07 Thread Jeffrey Walton
On Tue, Jun 7, 2011 at 7:42 PM, James Merkel wrote: > I am sending a URL string to NSWorkspace's  openURL method that has the > bracket characters ( ) in it. The URL can't be opened by  NSWorkspace. If I > take out the ( ) characters NSWorkspace then opens the URL, so I guess > NSWorkspace conside

Malformed URL string in openURL

2011-06-07 Thread James Merkel
I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I take out the ( ) characters NSWorkspace then opens the URL, so I guess NSWorkspace considers the string with ( ) a malformed URL. Note, the (