SHARE
TWEET

Looking for info on custom drawing of interface components (Cocoa)

a guest Feb 27th, 2012 16 Never
  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. }
RAW Paste Data
Top