Skip to content
Newer
Older
100644 48 lines (38 sloc) 1.26 KB
8b366a0 @nriley Pester 1.0b1
authored
1 //
2 // NSTableView-NJRExtensions.m
4e1ec77 @nriley Changes for Pester 1.1d1.
authored
3 // Pester
8b366a0 @nriley Pester 1.0b1
authored
4 //
4e1ec77 @nriley Changes for Pester 1.1d1.
authored
5 // Created by Nicholas Riley on Sun Oct 27 2002.
8b366a0 @nriley Pester 1.0b1
authored
6 // Copyright (c) 2002 Nicholas Riley. All rights reserved.
7 //
8
9 #import "NSTableView-NJRExtensions.h"
10
11
4e1ec77 @nriley Changes for Pester 1.1d1.
authored
12 @interface NSTableView (PumaPrivate)
13 // Declarations of 10.1 private methods, just to make the compiler happy.
14 + (id) _defaultTableHeaderReverseSortImage;
15 + (id) _defaultTableHeaderSortImage;
16 @end
17
8b366a0 @nriley Pester 1.0b1
authored
18 @implementation NSTableView (NJRExtensions)
19
4e1ec77 @nriley Changes for Pester 1.1d1.
authored
20 + (NSImage *)ascendingSortIndicator;
21 {
22 NSImage *result = [NSImage imageNamed: @"NSAscendingSortIndicator"];
23 if (result == nil && [[NSTableView class] respondsToSelector: @selector(_defaultTableHeaderSortImage)])
24 result = [NSTableView _defaultTableHeaderSortImage];
25 return result;
26 }
27
28 + (NSImage *)descendingSortIndicator;
29 {
5327d1a @nriley Alarms.nib: Removed horizontal scroll bar. Turned on grid. Set delega…
authored
30 NSImage *result = [NSImage imageNamed: @"NSDescendingSortIndicator"];
31 if (result == nil && [[NSTableView class] respondsToSelector: @selector(_defaultTableHeaderReverseSortImage)])
4e1ec77 @nriley Changes for Pester 1.1d1.
authored
32 result = [NSTableView _defaultTableHeaderReverseSortImage];
33 return result;
34 }
35
8b366a0 @nriley Pester 1.0b1
authored
36 - (float)cellHeight;
37 {
38 return [self rowHeight] + [self intercellSpacing].height;
39 }
40
41 // causes NSTableView to get keyboard focus (with thanks to Pierre-Olivier Latour)
42 - (BOOL)needsPanelToBecomeKey
43 {
44 return YES;
45 }
46
47 @end
Something went wrong with that request. Please try again.