• 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: Getting Application Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting Application Path
      • From: Tomas Zahradnicky <email@hidden>
    • Re: Getting Application Path
      • From: j o a r <email@hidden>
References: 
 >Re: Getting Application Path (From: Rolf <email@hidden>)

  • Prev by Date: Re: port number for NSSocketPort
  • Next by Date: Re: Getting Application Path
  • Previous by thread: Re: Getting Application Path
  • Next by thread: Re: Getting Application Path
  • Index(es):
    • Date
    • Thread