Re: Using NSArrayController with a complex, heterogeneous model
Re: Using NSArrayController with a complex, heterogeneous model
- Subject: Re: Using NSArrayController with a complex, heterogeneous model
- From: Jerry Krinock <email@hidden>
- Date: Fri, 16 Jan 2015 21:20:40 -0800
> On 2015 Jan 16, at 20:58, Rick Mann <email@hidden> wrote:
>
> A "Part" in my app has a set of geometric primitives, and a set of labels (both have a common base class). These are two separate sets (arrays) on the part. But when editing the part, they can each be clicked on and edited. I want to use an NSArrayController to manage the selection
Consider a more standard approach: Two array controllers, one for each collection. I sense you don’t want to do that because you want only one item to be “selected”. That seems like an unnecessary restriction. You can have a set of geometric primitives, with a selection, and a separate set of labels, with a selection. True, the user can only edit one of these at a time, but the other selection doesn’t mind sitting idly by.
Remember, nonstandard designs always end up taking way more development time than expected.
_______________________________________________
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