Mailing Lists: Apple Mailing Lists

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

Launch Arguments in PB



I'm aware that this is slightly off topic, but seeing as I'm developing a Cocoa application, I thought this might be the right place to ask:

My pbproj has two targets, iGrade and iGrade Demo. The biggest difference is the fact that the demo should be called with the argument -demo, so that the application adjusts accordingly. However, even when I set -demo as a launch argument in the iGrade Demo executable, and check "Use", it gets called only with argc = 2 and argv[0] = \\014, argv[1] = ]. (Thank you, NSLog()!) What am I doing wrong? Also, are the launch arguments at least relatively tamper proof?



"A guy once asked me for a cup of coffee. So I bit him."
_______________________________________________
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.



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.