Colorful buttons of different shapes

2010-04-13 Thread Abhijeet Singh
Hi,I am porting my Win32 application to Mac. I am new to Cocoa. In my Windows Win32 application I have a window in that there is a 3 X 8 matrix of 24 buttons. Buttons are labeled as 124. Each button has 3 states. Unused Round shape green color(Default state) SelectedSquare shape orange color

Re: Colorful buttons of different shapes

2010-04-13 Thread Graham Cox
On 13/04/2010, at 9:58 PM, Abhijeet Singh wrote: effect.Should I use NSMatrix of buttons? It would be a straightforward solution. If yes than how can i set color and shape of buttons? You'd probably need a NSButtonCell subclass. Drawing alternative appearances is pretty easy that only