Re: Getting Application Path
Re: Getting Application Path
- Subject: Re: Getting Application Path
- From: "Anthony Cheung" <email@hidden>
- Date: Thu, 29 May 2003 17:16:35 +0800
Dear all,
I have no problem to get my application path. However, is it possible to get
the volume name of the application as well. Many Thanks.
Regards,
Anthony
----- Original Message -----
From: "Rolf" <email@hidden>
To: "Anthony Cheung" <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, May 28, 2003 4:05 PM
Subject: Re: Getting Application Path
>
>
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.