• 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: indexed accessor properties and NSArray/NSMutableArray's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >indexed accessor properties and NSArray/NSMutableArray's (From: Roland King <email@hidden>)
 >Re: indexed accessor properties and NSArray/NSMutableArray's (From: Jeff Johnson <email@hidden>)
 >Re: indexed accessor properties and NSArray/NSMutableArray's (From: Negm-Awad Amin <email@hidden>)

  • Prev by Date: Re: indexed accessor properties and NSArray/NSMutableArray's
  • Next by Date: Re: indexed accessor properties and NSArray/NSMutableArray's
  • Previous by thread: Re: indexed accessor properties and NSArray/NSMutableArray's
  • Next by thread: Re: indexed accessor properties and NSArray/NSMutableArray's
  • Index(es):
    • Date
    • Thread