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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]