• 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: (solved?) baseURL problem with +fileURLWithPath:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: (solved?) baseURL problem with +fileURLWithPath: (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Detecting modifier key down when opening a menu?
  • Next by Date: Re: Detecting modifier key down when opening a menu?
  • Previous by thread: Re: (solved?) baseURL problem with +fileURLWithPath:
  • Next by thread: [iPhone] How to add a text field like that scales with return key like in iPhone Messages
  • Index(es):
    • Date
    • Thread