Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 26, 2007, 01:03 AM   #1
satyam90
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
My Application Path

Hi,
I am using Cocoa with Obj-C.
Can any one tell me how to get programatically the path of the executable I am running.
Regards,
Satya.
satyam90 is offline   0 Reply With Quote
Old Nov 26, 2007, 01:47 AM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
[[NSBundle mainBundle] bundlePath]
kainjow is offline   0 Reply With Quote
Old Nov 26, 2007, 06:31 AM   #3
satyam90
Thread Starter
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
Quote:
Originally Posted by kainjow View Post
[[NSBundle mainBundle] bundlePath]
Before posting the thread, I tried the same, the application is crashing. I doubted whether I am using correct method or not and posted the thread.
satyam90 is offline   0 Reply With Quote
Old Nov 26, 2007, 06:36 AM   #4
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
If you don't post the code we can't really help...
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Copying two different path Betfair39 Mac Basics and Help 0 Jan 18, 2014 03:27 PM
Regarding Path Finder 5.2.2 ifrit05 Mac Applications and Mac App Store 2 Dec 27, 2013 05:12 PM
Any way/application to click on application icon in dock and minimize? TheArgonaut OS X Mavericks (10.9) 3 Dec 6, 2013 08:23 PM
Need Help Finding an Application (OCR Scanning Application?) lazer155 Mac Applications and Mac App Store 5 Feb 11, 2013 01:01 PM
Web application link application launch puzzle lancewan Mac Applications and Mac App Store 0 Jun 21, 2012 08:37 AM

Forum Jump

All times are GMT -5. The time now is 11:45 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps