- virtual void Enable(int n, bool enable = TRUE);
- virtual void Show(int n, bool show = TRUE);
- // layout parameters
- virtual int GetColumnCount() const;
- virtual int GetRowCount() const;
+protected:
+ // We don't want the typical wxCocoaNSBox behavior because our real
+ // implementation is by using an NSMatrix as the NSBox's contentView.
+ WX_NSMatrix GetNSMatrix() const;
+ void AssociateNSBox(WX_NSBox theBox);
+ void DisassociateNSBox(WX_NSBox theBox);
+
+ virtual wxSize DoGetBestSize() const;
+
+ int GetRowForIndex(int n) const
+ {
+ if(m_windowStyle & wxRA_SPECIFY_COLS)
+ return n / GetMajorDim();
+ else
+ return n % GetMajorDim();
+ }
+
+ int GetColumnForIndex(int n) const
+ {
+ if(m_windowStyle & wxRA_SPECIFY_COLS)
+ return n % GetMajorDim();
+ else
+ return n / GetMajorDim();
+ }