Re: Getting Application Path
Re: Getting Application Path
- Subject: Re: Getting Application Path
- From: Rolf <email@hidden>
- Date: Wed, 28 May 2003 10:05:28 +0200
Hi,
The following will give the main bundle path:
NSBundle * bundle = [NSBundle mainBundle];
NSLog(@"Bundle Path=%@",[bundle bundlePath]);
and it works both inside and outside PB.
/Rolf
28.05.2003 09:53:18, skrev "Anthony Cheung" <email@hidden>:
>
Dear all,
>
>
The last email has missed the content. I am looking for the method to get the
>
application path. I have tried currentDirectionaryPath in NSFileManager and
>
method "environment" in NSProcessInfo. Both of them give me a correct path
>
under Project Builder environment. However, when I execute the application,
>
wrong path is given by the frontier with nil is return by the second way.
>
Would you please tell how I can get the application path.
>
>
Regards,
>
>
Anthony Cheung
>
---------------------------------------------
>
Analyst Programmer
>
Compose System Ltd.
>
Tel : (+852) 2811 4228
>
Fax : (+852) 2811 2263
>
www.compose.com.hk
>
_______________________________________________
>
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.