Just adding the other methods for clarification.

- (void) drawAxes:(NSRect) rect
{
        NSRect bounds = [self bounds];
                
        NSBezierPath *path = [NSBezierPath bezierPath];
        
        [path moveToPoint:NSMakePoint(0.1, 0.0)];
        [path lineToPoint:NSMakePoint((bounds.size.width * 0.95), 0.0)];

        [path moveToPoint:NSMakePoint(0.0, 0.1)];
        [path lineToPoint:NSMakePoint(0.0, (bounds.size.height * 0.95))];
        
        [[NSColor grayColor] setStroke];
        [path stroke];
        
        return;
}

- (void) drawError:(NSRect) rect
{       
        [[NSColor whiteColor] setStroke];       
        [pointsPath setLineCapStyle:NSSquareLineCapStyle];
        [pointsPath stroke];
                
        return;
}
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to