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 23:42:14 -0800
> On 2015 Jan 16, at 21:35, Rick Mann <email@hidden> wrote:
>
> The problem I see with two controllers has to do with managing the selection, and numerous other problems. For example, I have an inspector that's looking at the "current selection." How does it consider the unified selection of both controllers? More than one controller seems to be asking for trouble.
Make a bigger inspector, scrolling if necessary, to show attributes of both the selected geometric primitive and the selected label. This is how Xcode does it. Actually, they even put another layer on top of that. In an Xcode project window, what they call the Utilities Area of (the right-hand side) is effectively an Inspector. When a source text file is being edited, there is a little switch at the top of the Utilities Area. The user can select either the “File Inspector” or the “Quick Help Inspector”. In your case, you could select either the “Selected Geometric Primitives Inspector” or the “Selected Label Inspector”. You could expand this to more attributes; wen a xib file is selected in Xcode, you get not two but, I think, seven “Inspectors”.h
OK, Rick, maybe you’re not a fan of Xcode. Bad example :)) But understand that there are many reasonable ways to design a user interface to show a complicated data model. I like to try and make the user interface look like the data model. Two collections —> Two array controllers. But in the end, every app is different and “there are no solutions, only tradeoffs” (Thomas Sowell).
_______________________________________________
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