Objective-C Tutorial - Lesson 24: NSArray

preview_player
Показать описание
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 I teach you guys about the NSArray object. A NSArray is different from a NSMutableArray because once you initialize it, you can't add or remove objects from it.

objective-c tutorial
objective-c tutorials
Objective-C Tutorial
objective c programming tutorial
objective c programming tutorials
Objective C programming Tutorial
Рекомендации по теме
Комментарии
Автор

Mean to say newest version of Xcode sorry

Taxprep
Автор

the message "europeTransactions[1];" will not work in xCode 4.x and greater. instead you must message the object directly: "[[europeTransactions objectAtIndex:1] doubleValue];"

stephenw
Автор

Great tutorial series! I've been going through all the videos and really find them helpful. I've got a question about the code in this video though:
Where you access the array in NSLog, you use europeTransactions[1] and just print it. Can you explain the difference between your version and using [europeTransactions objectAtIndex:0] doubleValue] instead? It seems like some kind of pointer issue, but I just don't understand well enough to figure it out yet.

mccann
Автор

@Ichiban1337 I had the same problem with my code and altered it in the same way also I am using ver 4.1 as well. In the video he's clearly using an older version of Xcode. Hope this helps

encompass
Автор

when i display %.2f in the NSLog i get like a 50 digit number, but if i use %@ i get the 200 in "int" why?

cristiant
Автор

and how do you acces the different objects in the array? as in NSMutableArray?

rgarafulicm
Автор

how do you un install programs on the mac?

oesha
Автор

@oesha28 lol, how/why did u get to this video to find an answer to that??

claus
Автор

hi, is this taken from objective c for dummies? thanks, Ryan

RestorationsFOD
Автор

it always suggests that i change "%.2f" to "%@" for some reason
FYI im running mountain lion

Taxprep