From 7e88b1abfdd084a88e7d29b2a0afbd92c9d32a4b Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 9 Jun 2009 17:54:18 -0700 Subject: [PATCH] Minor stylistic changes. Reviewed by me. --- AppKit/CPBezierPath.j | 16 ++++++++-------- Tools/nib2cib/NSWindowTemplate.j | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/AppKit/CPBezierPath.j b/AppKit/CPBezierPath.j index 05a156fac..11d8c19ee 100644 --- a/AppKit/CPBezierPath.j +++ b/AppKit/CPBezierPath.j @@ -52,12 +52,12 @@ var DefaultLineWidth = 1.0; + (CPBezierPath)bezierPath { - return [[[self class] alloc] init]; + return [[self alloc] init]; } + (CPBezierPath)bezierPathWithOvalInRect:(CGRect)rect { - var path = [[self class] bezierPath]; + var path = [self bezierPath]; [path appendBezierPathWithOvalInRect:rect]; @@ -66,7 +66,7 @@ var DefaultLineWidth = 1.0; + (CPBezierPath)bezierPathWithRect:(CGRect)rect { - var path = [[self class] bezierPath]; + var path = [self bezierPath]; [path appendBezierPathWithRect:rect]; @@ -83,19 +83,19 @@ var DefaultLineWidth = 1.0; DefaultLineWidth = width; } -+ (void)fillRect:(CGRect)rect ++ (void)fillRect:(CGRect)aRect { - [[[self class] bezierPathWithRect:rect] fill]; + [[self bezierPathWithRect:aRect] fill]; } -+ (void)strokeRect:(CGRect)rect ++ (void)strokeRect:(CGRect)aRect { - [[[self class] bezierPathWithRect:rect] stroke]; + [[self bezierPathWithRect:aRect] stroke]; } + (void)strokeLineFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2 { - var path = [[self class] bezierPath]; + var path = [self bezierPath]; [path moveToPoint:point1]; [path lineToPoint:point2]; diff --git a/Tools/nib2cib/NSWindowTemplate.j b/Tools/nib2cib/NSWindowTemplate.j index 01eaad9cd..97afbe8ce 100644 --- a/Tools/nib2cib/NSWindowTemplate.j +++ b/Tools/nib2cib/NSWindowTemplate.j @@ -71,7 +71,7 @@ var NSBorderlessWindowMask = 0x00, (_windowStyleMask & NSResizableWindowMask ? CPResizableWindowMask : 0) | (_windowStyleMask & NSTexturedBackgroundWindowMask ? NSTexturedBackgroundWindowMask : 0) | (_windowStyleMask & NSHUDBackgroundWindowMask ? CPHUDBackgroundWindowMask : 0); - + _windowIsFullBridge = [aCoder decodeObjectForKey:"NSFrameAutosaveName"] === "CPBorderlessBridgeWindowMask"; /*if (![_windowClass isEqualToString:@"NSPanel"])