Re: Read-only properties
Re: Read-only properties
- Subject: Re: Read-only properties
- From: DKJ <email@hidden>
- Date: Sun, 12 Oct 2008 09:06:23 -0700
On 12 Oct, 2008, at 08:56, Roland King wrote:
If however you don't want the caller to modify the properties of the
objects *in* the array, then unless those objects are immutable,
returning a copy of the array won't help you anyway. Remember an
array of objects is just an array of pointers to the objects in the
array,
Indeed, I hadn't remembered that! So I may as well go ahead and
synthesise a read-only property, and make the array elements immutable
somehow.
Thanks for your replies.
_______________________________________________
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