Hey Patrick, An interesting problem.
Depending on how far you want to take this, how much this view will be reused, how customizable it needs to be, etc. will inform your design decisions. Just off the top of my head…If the number of blocks in each cell is fixed, it might be easy to make a custom NSView with n number of buttons. This could be created dynamically at runtime or in a XIB. Clicking a button would send a message to your custom view object that allows you to style all the other buttons. You could then group a number of these views to create your grid. If your view needs to be dynamic (n buttons in y groups), you might consider using a tableview or collection view to construct this. This is more work but will be the most customizable and reusable. Good luck! Doug Hill http://chartcube <http://chartcube/>.com/ > On Sep 14, 2015, at 5:17 PM, Patrick J. Collins > <patr...@collinatorstudios.com> wrote: > > Hi everyone, > > I am looking to implement something that would look somewhat like a > graphic equalizer. Meaning, a grid of blocks... Clicking on a single > grid block would change the appearance of all cells directly under it.. > So in other words, clicking on 1,1 would turn on 1,1. but clicking 1,5 > woudl turn on 1,5, 1,4, 1,3, 1,2, 1,1... > > I am curious if anyone here has a suggestion of what the best design > approach would be for something like this? Should I just > programatically generate a bunch of NSViews? Should I overal an > invisible button over each view? Or is there a better way to handle > click events on a simple NSView? > > Any push in the right direction would be greatly appreciated. Thanks! > > > Patrick J. Collins > http://collinatorstudios.com > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40breaqz.com > > This email sent to cocoa...@breaqz.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com