Quickies

[categories] [index] [all (527)] [latest]

Cocoa AppKit
  1. - (void)drawRect:(NSRect)dirtyRect {
    
        NSGraphicsContext *context = [NSGraphicsContext currentContext];
    
        [context saveGraphicsState];
    
        [context setShouldAntialias:NO];
    
        // draw here
    
        [context restoreGraphicsState];
    
        [super drawRect:dirtyRect];
    }