
Cocoa Maker 7 - Libraries and Frameworks
Apr 13, 2010
Radio and PodcastLive Radio & Podcasts
James ( MrGeckosMedia.com ), joined by, Eduardo ( MegaEduX.com ), and Karl, teaches how loops, arguments, and goto works in Cocoa. 15:35 Example code from episode. Loops Example <Foundation/Foundation.h> int main (...
Cocoa Maker 4 - Loops and Goto is an episode from Cocoa Maker by Mr. Gecko. James ( MrGeckosMedia.com ), joined by, Eduardo ( MegaEduX.com ), and Karl, teaches how loops, arguments, and goto works in Cocoa. 15:35 Example code from episode....
This episode belongs to Cocoa Maker.
Use the player on this page to stream the episode online.
Published Feb 22, 2010, audio available.
James ( MrGeckosMedia.com ), joined by, Eduardo ( MegaEduX.com ), and Karl, teaches how loops, arguments, and goto works in Cocoa. 15:35 Example code from episode. Loops Example <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int i=0; while (i!=2) { NSLog(@"%d", i); i++; } i=0; do { NSLog(@"%d", i); i++; } while (i!=3); NSArray *anArray = [NSArray arrayWithObjects:@"Apples", @"Oranges", @"Grapes", @"Bananas", nil]; for (int d=0; d<[anArray count]; d++) { NSLog(@"%@", [anArray objectAtIndex:d]); } NSString *theObject; for (theObject in anArray) { NSLog(@"For In: %@", theObject); } NSEnumerator *theEnumerator = [anArray objectEnumerator]; while (theObject = [theEnumerator nextObject]) { NSLog(@"Enumerator: %@", theObject); } [pool drain]; return 0; } Goto Example <Foundation/Foundation.h> void testGoto() { NSString *theString = [NSString new]; if (1==12) { goto Error; } goto Cleanup; Error: NSLog(@"An error occurred"); goto Cleanup; Cleanup: NSLog(@"Releasing the string"); [theString release]; } int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; testGoto(); [pool drain]; return 0; } Keynote used in this Episode Keynote in PDF Format
You can listen to Cocoa Maker 4 - Loops and Goto online on Radio and Podcast. Open the player on this page to stream the available audio.
Cocoa Maker 4 - Loops and Goto is an episode from Cocoa Maker by Mr. Gecko.
The episode duration depends on the source podcast feed and may not always be available.
This episode was published on Feb 22, 2010.
Yes. Use the heart button on the episode page to add it to your favorite episodes list.
Yes. This page shows related episodes from Cocoa Maker when more episodes are available from the podcast feed.
You can listen to Cocoa Maker 4 - Loops and Goto on this page when the episode audio is available from the podcast feed.
Cocoa Maker 4 - Loops and Goto is from Cocoa Maker by Mr. Gecko.
Published Feb 22, 2010