• 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: NSURL urlWithString return nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL urlWithString return nil


  • Subject: Re: NSURL urlWithString return nil
  • From: Andy Lee <email@hidden>
  • Date: Mon, 12 May 2008 19:24:01 -0400

Another possibility is that there is an invisible character in your URL (perhaps due to copy-paste) which Safari is kind enough to escape for you as . I would try deleting the "showtopic449" part and retyping it by hand to make sure there is no hidden character between "topic" and "449".

--Andy

On May 12, 2008, at 6:24 PM, Wayne Packard wrote:


On May 12, 2008, at 3:16 PM, Dex Morgan wrote:

Hello,
I've tried to create an NSURL with this URL:
http://forum.scmf.it/index.php?showtopic449&st
However it returns nil.
So I've tried to open it via Safari and the URL become
http://forum.scmf.it/index.php?showtopic449&st

?
Is there any way to translate these url into the correct way?

You might want to take a look at these methods in the NSString docs:

– stringByAddingPercentEscapesUsingEncoding:

– stringByReplacingPercentEscapesUsingEncoding:

wp

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSURL urlWithString return nil (From: Dex Morgan <email@hidden>)
 >Re: NSURL urlWithString return nil (From: Wayne Packard <email@hidden>)

  • Prev by Date: Re: NSURL urlWithString return nil
  • Next by Date: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)
  • Previous by thread: Re: NSURL urlWithString return nil
  • Next by thread: Re: NSURL urlWithString return nil
  • Index(es):
    • Date
    • Thread