Re: Read-only properties
Re: Read-only properties
- Subject: Re: Read-only properties
- From: "Steven Degutis" <email@hidden>
- Date: Sun, 12 Oct 2008 10:54:04 -0500
I may be mistaken on this, but it sounds like there isn't a way to do what
you're trying to without making each array item immutable (such as NSString
instead of NSMutableString). The reason for this lies behind how pointers
work: once you have a reference, you can alter whatever is inside that
reference, and other objects that have references will see these changes.
Hope this helps.
On Sun, Oct 12, 2008 at 10:46 AM, DKJ <email@hidden> wrote:
> oops... of course that should have been:
>
> @property(readonly) NSArray *myArray;
>
>
>
> _______________________________________________
>
> 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
>
--
Steven Degutis
_______________________________________________
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