Re: Problems with XCode 1.2
Re: Problems with XCode 1.2
- Subject: Re: Problems with XCode 1.2
- From: "Louis C. Sacha" <email@hidden>
- Date: Tue, 27 Apr 2004 20:14:48 -0700
Hello...
Maybe you have an old version of the templates installed somehow, or
a version you had modified? This came up previously on the list a
while ago, and the problem was that the declaration of the arguments
for main() conflicted with the arguments declared for the
NSApplicationMain() function. Maybe the declaration of
NSApplicationMain() was updated now?
I haven't had a chance to download Xcode 1.2 yet -- since with my
current nano-band connection it would take about two and half days,
assuming the humidity stayed low enough that it didn't cause static
in the substandard telephone wiring they have in my neighborhood :)
Anyway, the archive search at search.lists.apple.com for this list
doesn't seem to be working at the moment, but if I remember
correctly, basically if main() looked like this
int main(int argc, const char *argv[])
{
return NSApplicationMain(argc, argv);
}
it would need to be
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, argv);
}
or the opposite...
Louis
Ok I just started a new project because I ran into this. In the new
project I altered nothing, did nothing. I simply created new cocoa
application and when I hit build I get this :
...
/Users/Goddess/Documents/Projects/ScrollTabs/main.m: In function `main':
/Users/Goddess/Documents/Projects/ScrollTabs/main.m:13: warning:
passing arg 2 of `NSApplicationMain' from incompatible pointer type
/Users/Goddess/Documents/Projects/ScrollTabs/main.m:13:
warning:
passing arg 2 of `NSApplicationMain' from incompatible pointer type
This is the template that came with xcode what the heck is this
about!!??!
_______________________________________________
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.