Game Development Community

how do I add new .cc and header files in xcode??

by Ashwin · in iTorque 2D · 06/08/2009 (12:13 am) · 5 replies

Hello iTGB'ers

I am pretty much a noob in programming and this is probably an easy question to answer. I have downloaded the MD5 files from this site and I am having trouble with adding the files into my project.

I know how to add them in xcode but what do I have to do next?? Do I have to edit the Makefiles or do I have to change some other files in the source?? because I can't get iTGB to see the new functions. And I read somewhere that I have to recompile, is this the same as build and go in xcode??

I hope to get an answer soon

regard,

Ashwin

#1
06/08/2009 (12:26 am)
Nothing, after its beeing added, the classes are beeing seen if they are correct after the next full rebuild.
build & go does not rebuild, you first need to have the mouse down on build and select clean
#2
06/08/2009 (12:59 am)
Ok i just tried that but iTGB still cant find the new functions, so i must have done something wrong in the adding process. Can you tell me the best way to add the files?
#3
06/08/2009 (1:56 am)
Just to ensure:
if you rebuild iTGB Game, then TGB and TGBGame won't see it.
Those two things are distinct projects.
So if you added new script functions, both need the files added and beeing rebuilt
#4
06/08/2009 (3:43 am)
ok so how do i rebuild TGB and TGBGame, also with Xcode??
#5
06/08/2009 (4:33 am)
Thanks I finally got it.

OK i have rebuild tgb and tgbgame in xcode. My added function is working, but now the sound is messed up I just hear white noise in TGBgame. Not really a big problem, because the sound works fine in the simulator. However I want to know the problem still.