Re: indexed accessor properties and NSArray/NSMutableArray's
Re: indexed accessor properties and NSArray/NSMutableArray's
- Subject: Re: indexed accessor properties and NSArray/NSMutableArray's
- From: Jeff Johnson <email@hidden>
- Date: Tue, 5 Aug 2008 12:14:54 -0500
On Aug 5, 2008, at 11:01 AM, Negm-Awad Amin wrote:
2.1. If -mutableCollectionValueForKey: should work efficient, you
have to return a mutable ivar on your accessors (getter). This
means, that *everyone* can change items in that collection without
triggering kvo. This is the opposition of encapsulation and very,
very dangerous.
You don't need a getter if you use accessInstanceVariablesDirectly
(which returns YES by default).
-Jeff
_______________________________________________
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