Changeset 3635


Ignore:
Timestamp:
Oct 29, 2007, 11:49:53 AM (14 years ago)
Author:
livings124
Message:

use built-in rounded corner rect on Leopard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSBezierPathAdditions.m

    r3083 r3635  
    2424
    2525#import "NSBezierPathAdditions.h"
     26#import "NSApplicationAdditions.h"
    2627
    2728@implementation NSBezierPath (NSBezierPathAdditions)
     
    2930+ (NSBezierPath *) bezierPathWithRoundedRect: (NSRect) rect radius: (float) radius
    3031{
     32    if ([NSApp isOnLeopardOrBetter])
     33        return [self bezierPathWithRoundedRect: rect xRadius: radius yRadius: radius];
     34   
    3135    float minX = NSMinX(rect),
    3236        minY = NSMinY(rect),
Note: See TracChangeset for help on using the changeset viewer.