I use the following to expose languages array.
@property(nonatomic,readonly)NSArray *languages;
Assigning languages before ARC was like this:
languages=[[NSArray arrayWithObjects:
[[Language alloc]initWithCode:@"es"],
[[Language alloc]initWithCode:@"en"],
nil] retain];
So, I was both able to retain the object and also mark it as readonly to outside.
With ARC, As I cannot type "retain" manually. How can I do this without overriding setters and getters? Is there a way to mark a property both readonly (to outside) and retain (to inside) for ARC?