Listen "Cocoa Maker 1 - Getting Started"
Episode Synopsis
James (MrGeckosMedia.com), joined by, Eduardo (MegaEduX.com), Nick, and Karl, teaches the basics of installing Xcode, setting up a project and making a "Hello, World!" command line utility.
30:16
Example code from episode.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *name = @"World";
if (argc>1) {
name = [[[NSString alloc] initWithBytes:argv[1] length:strlen(argv[1]) encoding:NSUTF8StringEncoding] autorelease];
}
NSLog(@"Hello, %@", name);
[pool drain];
return 0;
}
30:16
Example code from episode.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *name = @"World";
if (argc>1) {
name = [[[NSString alloc] initWithBytes:argv[1] length:strlen(argv[1]) encoding:NSUTF8StringEncoding] autorelease];
}
NSLog(@"Hello, %@", name);
[pool drain];
return 0;
}
More episodes of the podcast Cocoa Maker
Cocoa Maker 7 - Libraries and Frameworks
13/04/2010
Cocoa Maker 5 - File Management
19/03/2010
Cocoa Maker 4 - Loops and Goto
22/02/2010
Cocoa Maker 3 - Documentation
06/02/2010
Cocoa Maker 2 - Syntax
31/01/2010
Cocoa Maker Wallpapers
25/01/2010
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.