• 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: Trying to open a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to open a file


  • Subject: Re: Trying to open a file
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 18 Feb 2009 03:10:20 -0600

On Feb 18, 2009, at 1:15 AM, Christian Graus wrote:

I will look to see what fileURLWithPath returns tho, b/c the string is the
same as it was the last time I ran this, but last time it worked ( the code
has not changed, so I am mystified )

It may have worked, but it is not a generally correct thing to do. A file path may contain characters that a URL may not, like a space. So, taking a file path and prepending file:// does not necessarily make it a valid URL string.


It may be that an update to the system frameworks tightened up the validation of URL strings passed to -[NSURL initWithString:], causing something which used to work to now fail. Such validation tightening is typical of security updates.

Cheers,
Ken

_______________________________________________

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


  • Follow-Ups:
    • Re: Trying to open a file
      • From: Christian Graus <email@hidden>
References: 
 >Trying to open a file (From: Christian Graus <email@hidden>)
 >Re: Trying to open a file (From: Ron Fleckner <email@hidden>)
 >Re: Trying to open a file (From: Christian Graus <email@hidden>)

  • Prev by Date: Re: Is there a known bug in NSUrl?
  • Next by Date: Re: Moving oneself to /Applications (or ~/Applications)
  • Previous by thread: Re: Trying to open a file
  • Next by thread: Re: Trying to open a file
  • Index(es):
    • Date
    • Thread