This is soooooo frustrating!This is the situation:
I just made a C++ tool (because it was the only C++ thing in the "new project" window), then i wrote my code, and when i build it, it works fine. The program does what i want it to do. But now i want to turn the program into a stand-alone application. I already have the .icns file and i know how to add an icon to my program. I made a new target, and when it asked me what type of target i wanted, i chose a carbon application (because there was no "C++ application", and carbon is C++ isnt it?). So it made a new target, and in the panel below my original target (the one that looks like a lego block), it made a new target. So i put the source code from the first target into the new one, and the frameworks and my .icns file for the icon. When i click build it says that it was successful! Yippee!!! Im all happy thinking that i have made my stand-alone app! But when i go to the build folder for my program and open the application... the icon bounces up and down in the dock like it's starting, then goes away. Please someone tell me what i am doing wrong!!! This xcode thing is really confusing. Do i need to make a .nib (interface) file? Cause if I do, then i know how to DESIGN the interface... but i have no idea how to program it so that it works with my program. How do i do it?
I just made a C++ tool (because it was the only C++ thing in the "new project" window), then i wrote my code, and when i build it, it works fine. The program does what i want it to do. But now i want to turn the program into a stand-alone application. I already have the .icns file and i know how to add an icon to my program. I made a new target, and when it asked me what type of target i wanted, i chose a carbon application (because there was no "C++ application", and carbon is C++ isnt it?). So it made a new target, and in the panel below my original target (the one that looks like a lego block), it made a new target. So i put the source code from the first target into the new one, and the frameworks and my .icns file for the icon. When i click build it says that it was successful! Yippee!!! Im all happy thinking that i have made my stand-alone app! But when i go to the build folder for my program and open the application... the icon bounces up and down in the dock like it's starting, then goes away. Please someone tell me what i am doing wrong!!! This xcode thing is really confusing. Do i need to make a .nib (interface) file? Cause if I do, then i know how to DESIGN the interface... but i have no idea how to program it so that it works with my program. How do i do it?