Re: NSFileManager
Re: NSFileManager
- Subject: Re: NSFileManager
- From: Matthew Formica <email@hidden>
- Date: Tue, 23 Sep 2003 17:44:13 -0700
The best way would be [[NSBundle mainBundle] bundlePath]. To do what you
want, you may need to then strip off the last bit of the path to get back to
the folder containing your application. If you are packaging files inside
your application bundle, NSBundle has other methods as well to get you the
paths of specific folders within your application bundle.
Regards,
Matthew Formica
Apple DTS Engineer - Dev Tools, G5, and Cocoa
email@hidden
On 9/23/03 6:35 AM, "Luca Torella" <email@hidden> wrote:
>
Hello,
>
How can I know what is the folder of the application that is running?
>
I tried this method to select a folder which where in the same folder
>
of the app:
>
>
NSDirectoryEnumerator *enumer = [[NSFileManager defaultManager]
>
enumeratorAtPath:@"Files Griglia"];
>
>
This method is ok when I debug the application, but when I launch it
>
from the Finder it doesn't do its job, since it points to my HD.
>
>
Thanks,
>
Luca
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.