• 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
POSIX equiv to [nsBundle mainBundle] bundlePath]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX equiv to [nsBundle mainBundle] bundlePath]


  • Subject: POSIX equiv to [nsBundle mainBundle] bundlePath]
  • From: "tobias ford..." <email@hidden>
  • Date: Thu, 24 Jul 2003 15:29:15 -0500

I'm needing to find a way to get the path to where the actual executable file resides using POSIX apis. For example:

foo is located at /usr/bin/foo

when I execute foo, I want it to print /usr/bin/foo no matter what directory I'm in.

something that is equivalent to [nsBundle mainBundle] bundlePath]

any suggestions? please cc me directly.

thanks

-------------------
Tobias Ford...
email@hidden email@hidden
-------------------
Senior Software Engineer @ WolfPack Studios
www.wolfpackstudios.com www.shadowbane.com
_______________________________________________
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.

  • Prev by Date: Re: Simple NSAttributedString question
  • Next by Date: Re: Is NSPreferencePane used often
  • Previous by thread: EVEN more MLTE Issues - Error -50?!?
  • Next by thread: Re: POSIX equiv to [nsBundle mainBundle] bundlePath]
  • Index(es):
    • Date
    • Thread