For now, I only got one question, but i'm pretty sure I'll be having a few more in the next couple of days, and I don't want to open a new topic for each of my noob questions .
So, I just started programming in Objective-C (just bought the book "Learn Objective-C on the Mac"), but I do have some experience programming in windows (vb, c# and java). So my first question really comes from that background.
In c# and java, for instance, you can have a list of objects from a specific type (called generics):
C#:
Java:
Is it correct to say that the NSMutableArray is the equivalent for the List in c# and the ArrayList in java, and is there a way to use generics (or any way to specify the object type for the elements in an array) in Objective-C?
So, I just started programming in Objective-C (just bought the book "Learn Objective-C on the Mac"), but I do have some experience programming in windows (vb, c# and java). So my first question really comes from that background.
In c# and java, for instance, you can have a list of objects from a specific type (called generics):
C#:
Code:
List<Rectangle> rectangles = new List<Rectangle>();
Java:
Code:
ArrayList<Rectangle> rectangles = new ArrayList<Rectangle>();
Is it correct to say that the NSMutableArray is the equivalent for the List in c# and the ArrayList in java, and is there a way to use generics (or any way to specify the object type for the elements in an array) in Objective-C?