diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-02-17 14:45:26 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-02-17 14:45:26 +0000 |
commit | 3854565ea461d2ed24e56c19291fa91fb3f2e2ef (patch) | |
tree | 3ad2792f23a14e70df47613acadbea72c613b56a /Source | |
parent | 2d64f3eb02f26a16d9311cbe4403ea6f843075dc (diff) | |
download | sequelpro-3854565ea461d2ed24e56c19291fa91fb3f2e2ef.tar.gz sequelpro-3854565ea461d2ed24e56c19291fa91fb3f2e2ef.tar.bz2 sequelpro-3854565ea461d2ed24e56c19291fa91fb3f2e2ef.zip |
• commented out unused code; applied global layoutManager and container to all methods - for speed
Diffstat (limited to 'Source')
-rw-r--r-- | Source/NoodleLineNumberView.m | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Source/NoodleLineNumberView.m b/Source/NoodleLineNumberView.m index a701584c..b5429ac4 100644 --- a/Source/NoodleLineNumberView.m +++ b/Source/NoodleLineNumberView.m @@ -207,8 +207,6 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); NSUInteger line, count, rectCount, i; NSRectArray rects; NSRect visibleRect; - NSLayoutManager *layoutManager; - NSTextContainer *container; NSRange nullRange; NSArray *lines; id view; @@ -224,8 +222,6 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); { nullRange = NSMakeRange(NSNotFound, 0); - layoutManager = [view layoutManager]; - container = [view textContainer]; count = [lines count]; // Find the characters that are currently visible @@ -288,14 +284,14 @@ typedef NSRange (*RangeOfLineIMP)(id object, SEL selector, NSRange range); bounds = [self bounds]; - if (backgroundColor != nil) - { - [backgroundColor set]; - NSRectFill(bounds); - - [[NSColor colorWithCalibratedWhite:0.58 alpha:1.0] set]; - [NSBezierPath strokeLineFromPoint:NSMakePoint(NSMaxX(bounds) - 0.5, NSMinY(bounds)) toPoint:NSMakePoint(NSMaxX(bounds) - 0.5, NSMaxY(bounds))]; - } + // if (backgroundColor != nil) + // { + // [backgroundColor set]; + // NSRectFill(bounds); + // + // [[NSColor colorWithCalibratedWhite:0.58 alpha:1.0] set]; + // [NSBezierPath strokeLineFromPoint:NSMakePoint(NSMaxX(bounds) - 0.5, NSMinY(bounds)) toPoint:NSMakePoint(NSMaxX(bounds) - 0.5, NSMaxY(bounds))]; + // } view = [self clientView]; |