Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pass cmd line arguments to my carbon app?



 > so what if i want the user to be able to double-click the .app bundle
 > normally in Finder, but with different args?  or is this where i
 > -have- to use the Info.plist file to pass data into my app?

What do you mean when you say "use the Info.plist file to pass data into my
app?" That doesn't make sense to me.


i want to be able to give my app different startup arguments .. what i mean by "using the Info.plist" is that this is a sort of 'indirect way' of doing cmd-line args .. and is it the only way i can set args for my app?


one thing though, is that it doesn't seem to work for me if i put my args in the Info.plist as recommended, thus:

Info.plist:
	..
	<key>CFBundleExecutable</key>
        <string>The Name Of My App Executable -somearg</string>
	..

is this only possible/feasible if CFBundleExecutable is a no-spaces-in-the-string value?

.. about to do a test app to see if a non-spaced executable name will work where this one doesn't, but this would suck because it appears that XCode is not going to let me change the CFBundleExecutable value for my application/project setup without a fight .. every time i try to change it, i get a deadly crash. something for the xcode list, perhaps ..

--

;

Jay Vaughan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: How to pass cmd line arguments to my carbon app? (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.