Help. How to use the argument list passed in NSApplicationMain?
Help. How to use the argument list passed in NSApplicationMain?
- Subject: Help. How to use the argument list passed in NSApplicationMain?
- From: M M <email@hidden>
- Date: Wed, 23 Feb 2005 04:43:45 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hello,
Im a newbie in Cocoa programming and i'm making an
application that will also run using the command line
but i don't know how to extract and use the arguments
passed in NSApplicationMain.
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **)
argv);
}
I would like to use the arguments in my Controller
class which is my main window.
Is there any access method in NSApplication that i can
use to get the argument list?
thank you and i am looking forward for the help.
Sincerely,
Mich
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden