Re: best way to implement a clickable grid?

2015-09-15 Thread Jonathan Mitchell
> On 15 Sep 2015, at 01:17, Patrick J. Collins > 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.. >

Re: best way to implement a clickable grid?

2015-09-14 Thread Uli Kusterer
On 15 Sep 2015, at 02:35, Jens Alfke wrote: > I would probably just implement it as a custom NSView. Then it doesn’t even > have to be represented in memory as a grid; you just remember the level for > each x coord and fill in the appropriate squares when drawing. > >> Or is there a better way

Re: best way to implement a clickable grid?

2015-09-14 Thread Uli Kusterer
On 15 Sep 2015, at 02:17, Patrick J. Collins 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 ot

Re: best way to implement a clickable grid?

2015-09-14 Thread Doug Hill
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 cus

Re: best way to implement a clickable grid?

2015-09-14 Thread Jens Alfke
I would probably just implement it as a custom NSView. Then it doesn’t even have to be represented in memory as a grid; you just remember the level for each x coord and fill in the appropriate squares when drawing. > Or is there a better way to handle click events on a simple NSView? Just overr

best way to implement a clickable grid?

2015-09-14 Thread Patrick J. Collins
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 wou