Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
- Subject: Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
- From: Daryn <email@hidden>
- Date: Wed, 28 Jan 2004 19:06:40 -0600
I bet it's the space in "Application Support". Spaces, as well as many
other characters, are not allowed in a url without being percent
encoded. I suspect the other browsers/versions aren't conforming
strictly to the standard.
Try using NSString's stringByAddingPercentEscapesUsingEncoding: on the
path before passing it to NSURL.
On Jan 28, 2004, at 8:32 AM, Ashwin A Prabhu wrote:
>
Hi All,
>
>
>
I am trying to open a URL using the below statements:
>
>
NSWorkspace *workSpace = [[NSWorkspace alloc] init];
>
[workSpace openURL:[NSURL fileURLWithPath:path]];
>
>
"path" is formed in the following manner:
>
>
NSString *path = [[surveyUtilities applicationSupportPath]
>
stringByAppendingPathComponent:title];
>
>
+(NSString*)applicationSupportPath
>
{
>
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
>
NSString *appName = [[bundlePath lastPathComponent]
>
stringByDeletingPathExtension];
>
NSArray *components =
>
NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
>
NSUserDomainMask,
>
YES);
>
NSString *basePath = [NSString pathWithComponents:components];
>
NSString *thePath = [NSString stringWithFormat:@"%@/Application
>
Support/%@", basePath, appName];
>
return thePath;
>
}
>
>
The HTML File opens properly without any problem in Safari and Netscape
>
But now if the default browser is IEv5.2.3 it gives an error saying
>
"The
>
File cannot be found".
>
But for versions lower than 5.2.3 i.e 5, 5.2.1,5.2.2 it works fine and
>
the
>
HTML File is opened properly.
>
>
Is this a known issue???
>
Is there a fix already in place for the same?
>
And if there is please let us know about the same.
>
>
Thanks,
>
Ashwin
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.