I noticed in main.m it appears to recognize parameters like any c program. How can I pass arguments to the app?
+1
A:
You would never need to call main with arguments in a cocoa touch application. If you read the code you'll see that main is used to simply load the cocoa touch app when the user touches the application icon. You can effectively pass arguments to your app by creating a plist file and reading it.
ennuikiller
2010-09-25 17:20:26
So why does main look the way it does?
awakeFromNib
2010-09-25 23:07:36
Not sure I understand the question....if you mean why have argc and argv defined, its really there as a convention.....you'll see that apples code is very tight in that way..
ennuikiller
2010-09-26 19:21:08