NSMutableDictionary *dict = [NSMutableArray array]
I am reading a book on Cocoa, and I've got to a section where the author
declares a property, @property (strong) NSMutableDictionary *characters;
And then initialises it like so: self.characters = [NSMutableArray array];
I would be very grateful is someone could explain what is going on during
the initialisation. I know [NSMutableArray array] returns an empty array,
but how does this relate to the NSMutableDictionary?
Thanks in advance.
No comments:
Post a Comment