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

Re: baseURL problem with +fileURLWithPath:


  • Subject: Re: baseURL problem with +fileURLWithPath:
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 18 May 2010 11:55:21 +0100

Show us some code.

On 18 May 2010, at 09:49, Robert Monaghan wrote:

> Hi Everyone..
>
> I am loosing my mind with NSURL's initFileURLWithPath. (Trying to build a 10.5 app.. btw)
>
> If I create a NSURL object with a local file path, everything looks as it should, when stepping through the code with the debugger.
> However, when I use "[myURL path]" in my code, I get a path to my binary instead of the path that is placed into NSURL object.
> After doing some reading, this looks as if my local file path is being set as the "Relative" path, and the binary application is set as
> the "BaseURL".
>
> Can someone (preferably from Apple) explain why this is broken with file paths?
> -- Yes.. it is broken, as there is no way to set the baseURL, nor is there a way to set my local file path as the baseURL.
> --- I used absoluteURL, but that only returns the binary path.
>
> I hope I don't have to remove these NSURL objects and replace them with NSStrings..
> what a pain in the a..
>
> bob.
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: baseURL problem with +fileURLWithPath:
      • From: Robert Monaghan <email@hidden>
References: 
 >baseURL problem with +fileURLWithPath: (From: Robert Monaghan <email@hidden>)

  • Prev by Date: Re: Why I can't see my localized nib?
  • Next by Date: Re: Regarding MVC design pattern
  • Previous by thread: baseURL problem with +fileURLWithPath:
  • Next by thread: Re: baseURL problem with +fileURLWithPath:
  • Index(es):
    • Date
    • Thread