Clarification - Why declare Array as a property?


I’m coming back to programming after quite a long break and rather than doing the sensible thing and starting back with Obj-C, I thought I’d dive straight in to Cocoa, so please forgive the dumb “Newbie” question!

Can you tell me what is the reason for declaring the [NSMutableArray] “items” as a property? I don’t see that having a synthesised “getter” and “setter” is useful in this context, so I’m guessing that it has something to do with the new memory management features and the way the object is created, but I have to admit to being a bit confused (I think I might be getting too old to learn new things) :frowning:

Also was your sample code written in a different version of Xcode to mine (Version 4.5 (4G182)) as when I create a property, I don’t get any @synthesize directives generated, but I do seem to be able to use “_” to reference them.

Any help help you offer this tired old brain would be much appreciated.