• 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: 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.

  • Follow-Ups:
    • Re: Getting Application Path
      • From: "Anthony Cheung" <email@hidden>
References: 
 >Getting Application Path (From: "Anthony Cheung" <email@hidden>)

  • Prev by Date: Re: Getting Applicaiton Path
  • Next by Date: Dragging custom NSCells in NSOutlineView
  • Previous by thread: Getting Application Path
  • Next by thread: Re: Getting Application Path
  • Index(es):
    • Date
    • Thread