Re: Limited-access, KVO-compliant mutable array?
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