Re: (solved?) baseURL problem with +fileURLWithPath:
Re: (solved?) baseURL problem with +fileURLWithPath:
- Subject: Re: (solved?) baseURL problem with +fileURLWithPath:
- From: Robert Monaghan <email@hidden>
- Date: Tue, 18 May 2010 20:09:20 +0200
Interesting.. The source of this path is from Final Cut Pro. I can't say how they come up with the path.
I will ping some people and find out.
bob.
On May 18, 2010, at 8:01 PM, John Joyce wrote:
>
> On May 18, 2010, at 12:39 PM, email@hidden wrote:
>
>> Content-Type: text/plain; charset=us-ascii
>>
>> First, the first 2 characters need to be // and not / for it to be a valid resource specifier. The 10.6 Overview states it will fail to create a NSURL. Look at the class reference. Why the base is set to your binary maybe just a bug in 10.5. So you don't go nuts, just temp fix the string and then execute your code to see if the originating pseudo URL is your prob.
>>
>> -Tony
>
> Yes, the resource specifier should be protocol://pathtoresource
> a file URL uses file://path
> a path to a file always becomes absolute here.
> / is root directory of the volume in a file path in unix
> thus, it should have the following appearance: (3 slashes after the colon)
> file:///absolute/path/to/file
>
_______________________________________________
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