• 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: Limited-access, KVO-compliant mutable array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limited-access, KVO-compliant mutable array?


  • Subject: Re: Limited-access, KVO-compliant mutable array?
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 11 Jul 2012 09:09:38 -0500

On Jul 11, 2012, at 2:36 AM, Rick Mann wrote:

> I still disagree, in the sense that, as a client, I would never expect the contents of an NSArray to change (only the array assigned to the property).

That expectation was/is unfounded.  In fact, I suspect you don't even expect it as often as you think.  I think you just got yourself turned around by over-thinking your case.

For example, do you expect -[NSApplication windows] to change?  -[NSView subviews]?  -[NSMutableDictionary allKeys]?  -[NSWorkspace runningApplications]?

My point is that it's totally common for a class to have a property of type NSArray* whose contents change over time.  And you regularly use such properties without a second thought.

Regards,
Ken


_______________________________________________

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: 
 >Limited-access, KVO-compliant mutable array? (From: Rick Mann <email@hidden>)
 >Re: Limited-access, KVO-compliant mutable array? (From: Roland King <email@hidden>)
 >Re: Limited-access, KVO-compliant mutable array? (From: Rick Mann <email@hidden>)
 >Re: Limited-access, KVO-compliant mutable array? (From: Quincey Morris <email@hidden>)
 >Re: Limited-access, KVO-compliant mutable array? (From: Quincey Morris <email@hidden>)
 >Re: Limited-access, KVO-compliant mutable array? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: How to implement an object whose properties are really dictionary entries.
  • Next by Date: Re: Instance not responding to selector
  • Previous by thread: Re: Limited-access, KVO-compliant mutable array?
  • Next by thread: Re: Limited-access, KVO-compliant mutable array?
  • Index(es):
    • Date
    • Thread