Revision: 5304
http://skim-app.svn.sourceforge.net/skim-app/?rev=5304&view=rev
Author: hofman
Date: 2009-04-04 00:01:32 +0000 (Sat, 04 Apr 2009)
Log Message:
-----------
set larger rowheight for sourcelist style outlineview in superclass
Modified Paths:
--------------
trunk/SKOutlineView.h
trunk/SKOutlineView.m
trunk/SKTocOutlineView.m
Modified: trunk/SKOutlineView.h
===================================================================
--- trunk/SKOutlineView.h 2009-04-03 23:47:29 UTC (rev 5303)
+++ trunk/SKOutlineView.h 2009-04-04 00:01:32 UTC (rev 5304)
@@ -45,7 +45,6 @@
}
+ (BOOL)usesDefaultFontSize;
-+ (float)rowHeightForFont:(NSFont *)font;
- (NSArray *)selectedItems;
Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m 2009-04-03 23:47:29 UTC (rev 5303)
+++ trunk/SKOutlineView.m 2009-04-04 00:01:32 UTC (rev 5304)
@@ -50,10 +50,6 @@
+ (BOOL)usesDefaultFontSize { return NO; }
-+ (float)rowHeightForFont:(NSFont *)font {
- return [NSLayoutManager defaultViewLineHeightForFont:font];
-}
-
- (void)dealloc {
if ([[self class] usesDefaultFontSize]) {
@try { [[NSUserDefaultsController sharedUserDefaultsController]
removeObserver:self forKey:SKTableFontSizeKey]; }
@@ -245,7 +241,10 @@
[cell setFont:font];
}
- [self setRowHeight:[[self class] rowHeightForFont:font]];
+ float rowHeight = [NSLayoutManager defaultViewLineHeightForFont:font];
+ if ([self respondsToSelector:@selector(selectionHighlightStyle)] && [self
selectionHighlightStyle] == NSTableViewSelectionHighlightStyleSourceList)
+ rowHeight += 2.0;
+ [self setRowHeight:rowHeight];
[self noteHeightOfRowsWithIndexesChanged:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRows])]];
}
Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m 2009-04-03 23:47:29 UTC (rev 5303)
+++ trunk/SKTocOutlineView.m 2009-04-04 00:01:32 UTC (rev 5304)
@@ -45,13 +45,6 @@
+ (BOOL)usesDefaultFontSize { return YES; }
-+ (float)rowHeightForFont:(NSFont *)font {
- float rowHeight = [super rowHeightForFont:font];
- if ([self
instancesRespondToSelector:@selector(setSelectionHighlightStyle:)])
- rowHeight += 2.0;
- return rowHeight;
-}
-
- (id)initWithFrame:(NSRect)frameRect {
if (self = [super initWithFrame:frameRect]) {
if ([self respondsToSelector:@selector(setSelectionHighlightStyle:)])
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit