• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]{UNSOLVED- FrameWork Problem}
      • From: "Ashwin A Prabhu" <email@hidden>
  • Prev by Date: Re: selecting a single cell in NSTableView?
  • Next by Date: Re: App won't launch again after user quits, only in 10.3, because of a thread?
  • Previous by thread: Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
  • Next by thread: Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]{UNSOLVED- FrameWork Problem}
  • Index(es):
    • Date
    • Thread