• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Read-only properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Read-only properties (From: DKJ <email@hidden>)
 >Re: Read-only properties (From: Roland King <email@hidden>)

  • Prev by Date: Re: Read-only properties
  • Next by Date: Re: Instruments leaks.
  • Previous by thread: Re: Read-only properties
  • Next by thread: Drawing?
  • Index(es):
    • Date
    • Thread