1. + (Class) cellClass
  2. {
  3. return [OurButtonCell class];
  4. }
  5.  
  6. - (void)drawRect:(NSRect)rect
  7. {
  8. // first get the cell to draw inside our bounds
  9. // then draw a focus ring if that's appropriate
  10. }
  11.  
  12. - (void)drawInteriorWithFrame: (NSRect) rect inView: (NSView *) controlView
  13. {
  14. // a bunch of drawing code
  15. }