Objective-C Tutorial - Lesson 23: Part 2: Coding the NSMutable Array

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,675
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 1, 2010

Objective-C® for Dummies® by Neal Goldstein, Copyright © 2009 by Wiley Publishing, Inc., is the main source of information for this video.

In this lesson we create two new NSNumber objects then create a NSMutable array then we add those very same objects to the array. Then I show you two different ways to pass those objects in the array through the spendDollars method.

Twitter - http://twitter.com/macandcomphelp
FaceBook - http://www.facebook.com/pages/Mac-Computer-Help/171606275876
E-mail - macandcomputerhelp@gmail.com

objective-c tutorial
objective-c tutorials
Objective-C Tutorial
objective c programming tutorial
objective c programming tutorials
Objective C programming Tutorial

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (macandcomputerhelp)

  • i truly hope you make more videos, they truly dont get the views they deserve

  • @moldycode Don't worry I am going to continue them. I've just been busy with school and then my MacBook crashed on New Years Eve, and I didn't have it for most of January. A new one is coming very soon.

  • Just finished going through all 23 tutorials--thanks for doing that. I know that the views dwindled from 30,000 on the first lesson to only 733 on the 23rd due to weeding erbody out, but I wanted you to know that they were helpful and I think I am going to run through all of them again now (a lot of information--it often felt like I was drinking out of a firehose, but I enjoyed it).

    I understand if making more ObjC tutorials isn't worth it for the views, but know that I'll watch them if you do.

  • @thelegume0oh Thanks for this comment! This isn't the last one at all. I have a couple in the making right now, and a new one is coming soon.

  • You found my favorite wallpaper lol!

  • @BRENNANSTECHBITE Yeah, I really like this wallpaper! It's one of my favorites too.

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • You're a Christian??? That's so awesome so am I.

  • I'm following your tutorials along with the book as sometimes its nice to hear someone walk you through the exercises and point out little things and vice versa. for some reason my spendDollar method won't show up blue. When I delete and re-type it it gives me the (NSNumber*) suggestion and recognises euroTransaction as an NSNumber but then switches back to black . I also don't get any NSLogs when I save and run ..

  • Can someone help me understand something? I am not copying the budget guide, but all I want to do is have an array and put it through a function. I have an array and successfully created that with two objects, but I need help creating the function.

    Can anyone help?

    Great videos by the way

  • Thanks, this has been great so far, but I must admit I am struggling to understand the 'why' on some of this one. I will watch it again, but for instance, you changed the type from NSNumber to double... can't figure out why you did that after telling us everything needed to be objects now. So I left it as is but can't get the program to compile. So either I just don't get the syntax or there was a reason for not using a NSNumber for spentDollars...

  • Congratulations, good job, continue like this :)

  • @NachoProductions814 Thanks. Its those little things that get you.

  • @daemon1963 you spelled object odject

  • I don't usually comment but thank you for this.. many of us REALLY appreciate what you do here.. keep it up, recognition is sure to follow.

  • I just wanted to add, i have truly enjoyed the videos and I know how time consuming it can be. BIG THANK YOU!!! from someone who has little coding experience. Keep them coming.

  • I hope you can help....please

    NSMutableArray *europeTransactions = [[NSMutableArray alloc] initWithCapacity:1];

    [europeTransactions addObject:europeDollarTransact­ion];

    [europeTransactions addObject:europeDollarTransact­ion2];

    [europeBudget createBudget:1000.00 withExchangeRate:1.2500];

    [europeBudget spendDollars:[europeTransactio­ns odjectAtIndex:0]]; [europeBudget spendDollars:[europeTransactio­ns objectAtIndex:1]]; warning: 'NSMutableArray' may not respond to '-odjectAtIndex:'

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more