Read-only properties
Read-only properties
- Subject: Read-only properties
- From: DKJ <email@hidden>
- Date: Sun, 12 Oct 2008 08:44:53 -0700
I'd like to have something like this in my class:
@property(readonly) *NSArray myArray;
But I don't want any of the individual objects in the array to be
modified, so I'd like to return a copy of the array. Is there a way of
getting @synthesise to ensure this? Or do I need to write my own
getter method?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden