discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting an absolute file path


From: Ivan Vučica
Subject: Re: getting an absolute file path
Date: Thu, 19 Sep 2013 15:59:04 +0200

Without looking at any other possibly available methods, one way would be to 
create an NSURL with +URLWithString:relativeToURL:. Then, take the path out of 
the resulting NSURL using -path.

Regards,

Ivan Vučica
via phone

> On 19 Sep 2013, at 15:52, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> 
> Hi,
> 
> I am chasing a strange error in ProjectCenter that drives me crazy.
> 
> Depending on how a project was opened, PC misbehaved. I tracked it down to 
> certain paths depending on the project path being absolute vs. relative. 
> Especially creations!
> 
> What's the best way (= portable also to windows) to get the absolute path of 
> a file or directory? I looked for methods in NSFileManager but found no easy 
> route.
> 
> Riccardo
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]