Re: Searching array with block
Re: Searching array with block
- Subject: Re: Searching array with block
- From: Seth Willits <email@hidden>
- Date: Sun, 11 Nov 2012 20:34:29 -0800
On Nov 11, 2012, at 4:58 PM, Erik Stainsby wrote:
>> Perhaps "matches" should really be an array-valued simple property as this code suggests, but it's far more usual to have an indexed property backed by an array variable.
>
> Are you saying hereby that I ought to be building an indexSet rather than duplicating the objects? and publishing the indexSet as perhaps - selectionIndexes ?
Yup. And -selection can be a read-only KVO-able array if you still need it etc.
--
Seth Willits
_______________________________________________
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