Introduction To XCode
Introduction To XCode
Introduction to Xcode
TRAINOR: ALVIE M. BALQUIN, MEng, DCS, CTFL email: abalquin@yahoo.com
Select the type of application, Command Line Utility ->Foundation Tool then click Choose button after. Select the name and location to store your files. Click the file with the .m extension and start to edit the file. Press Command S to save changes. Build and Run the application. If you get compiler error, make changes & save then back to Step 6.
int main (int argc, const char *argv[ ]) { NSAutoreleasePool *pool = [NSAutoreleasePool alloc] init ]; NSLog (@Hello World!); [pool drain]; return 0; }
Release all objects in the pool marked as autorelease
Keeps track of object references in your program for automatic release later.