Re: passing arg 2 of 'NSApplicationMain' from incompatible pointer type
Re: passing arg 2 of 'NSApplicationMain' from incompatible pointer type
- Subject: Re: passing arg 2 of 'NSApplicationMain' from incompatible pointer type
- From: Denis Stanton <email@hidden>
- Date: Thu, 19 Feb 2004 10:55:53 +1300
On Thursday, February 19, 2004, at 10:33 AM, Vince DeMarco wrote:
NSApplicationMain is defined like this
NSApplication.h:APPKIT_EXTERN int NSApplicationMain(int argc, const
char *argv[]);
Notice the const.
vince
Hi Vince
first let me congratulate you on the speed of response. six minutes,
according to the received times in Mail !
I see now that my code (which gets the warning message) has:
int main(int argc, char *argv[])
whereas the tutorial example has
int main(int argc, const char *argv[])
What I don't understand is how this discrepancy occurred. As far as I
recall the main.m code was generated by Xcode in both cases. Did I
make a correction to the generated code when I was using the tutorial
back in December, or has Xcode 1.1 introduced a subtle change in
omitting the "const"?
Denis
Denis Stanton
email@hidden
Home: +64 9 533 0391
mobile: +64 21 1433622
_______________________________________________
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.