• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with XCode 1.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Problems with XCode 1.2 (From: April Gendill <email@hidden>)

  • Prev by Date: Re: NSStreamEventHasBytesAvailable not getting thrown
  • Next by Date: Re: NSStreamEventHasBytesAvailable not getting thrown
  • Previous by thread: Problems with XCode 1.2
  • Next by thread: Re: Problems with XCode 1.2
  • Index(es):
    • Date
    • Thread