Radio and PodcastRadio and PodcastLive Radio & Podcasts
Cocoa Maker 4 - Loops and Goto artwork
Technology

Cocoa Maker 4 - Loops and Goto

Cocoa Maker by Mr. Gecko

Feb 22, 2010Technology

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 (...

About This Episode

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....

Podcast

This episode belongs to Cocoa Maker.

Listen Online

Use the player on this page to stream the episode online.

Episode Details

Published Feb 22, 2010, audio available.

Questions About This Episode

What is Cocoa Maker 4 - Loops and Goto about?

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

Where can I listen to Cocoa Maker 4 - Loops and Goto?

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.

Which podcast is Cocoa Maker 4 - Loops and Goto from?

Cocoa Maker 4 - Loops and Goto is an episode from Cocoa Maker by Mr. Gecko.

How long is this episode?

The episode duration depends on the source podcast feed and may not always be available.

When was this episode published?

This episode was published on Feb 22, 2010.

Can I save Cocoa Maker 4 - Loops and Goto for later?

Yes. Use the heart button on the episode page to add it to your favorite episodes list.

Are there related episodes from Cocoa Maker?

Yes. This page shows related episodes from Cocoa Maker when more episodes are available from the podcast feed.

Quick Answers About This Episode

Where can I listen to Cocoa Maker 4 - Loops and Goto?

You can listen to Cocoa Maker 4 - Loops and Goto on this page when the episode audio is available from the podcast feed.

Which podcast is this episode from?

Cocoa Maker 4 - Loops and Goto is from Cocoa Maker by Mr. Gecko.

What are the episode details?

Published Feb 22, 2010