Re: cocoa and argv
Re: cocoa and argv
- Subject: Re: cocoa and argv
- From: Chris Ridd <email@hidden>
- Date: Thu, 15 Aug 2002 11:56:35 +0100
Brian Ling <email@hidden> wrote:
>
I tried putting
>
>
char *testvar; //above the main function
>
testvar = argv[1]; //in the main function
>
>
however if i tried to access testvar in my controller
>
actions I get "testvar undeclared".
>
>
what have I missed.
This line:
extern char *testvar;
somewhere in a header file in common between main.m and YourController.m...
Cheers,
Chris
_______________________________________________
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.