Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Library path errors after Apple software update. Alan S MacBook Pro 1 Aug 22, 2011 08:11 PM
OMG! - Most of my Mac Applications are not responding xDeathReaperx Mac Applications and Mac App Store 11 Jan 13, 2011 11:03 PM
I uninstalled HidePod on my iPhone and now all my applications are gone from the menu twistedsunshine iPhone 4 Apr 14, 2008 09:29 AM
how do i get my applications folder back into my home? xenotaku Mac Applications and Mac App Store 1 Oct 3, 2007 09:30 PM
Is my application a Mac application ? TeppefallGuy Mac Applications and Mac App Store 16 Jun 29, 2006 07:44 PM


All times are GMT -5. The time now is 07:05 PM.

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

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC