Guest User

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

a guest
Feb 27th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment