Changeset 51 for trunk/Cocoa/Pester/Source/NSTableView-NJRExtensions.m
- Timestamp:
- 11/18/02 08:57:41 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NSTableView-NJRExtensions.m
r34 r51 28 28 + (NSImage *)descendingSortIndicator; 29 29 { 30 NSImage *result = [NSImage imageNamed: @"NSDescendingSortIndicator"];31 if (result == nil && [[NSTableView class] respondsToSelector: @selector(_defaultTableHeaderReverseSortImage)])30 NSImage *result = [NSImage imageNamed: @"NSDescendingSortIndicator"]; 31 if (result == nil && [[NSTableView class] respondsToSelector: @selector(_defaultTableHeaderReverseSortImage)]) 32 32 result = [NSTableView _defaultTableHeaderReverseSortImage]; 33 33 return result; 34 }35 36 - (NSArray *)selectedRowIndices;37 {38 NSEnumerator *theEnum = [self selectedRowEnumerator];39 NSNumber *rowNumber;40 NSMutableArray *rowNumberArray = [NSMutableArray arrayWithCapacity: [self numberOfSelectedRows]];41 42 while (nil != (rowNumber = [theEnum nextObject]) )43 [rowNumberArray addObject: rowNumber];44 45 return rowNumberArray;46 34 } 47 35
Note:
See TracChangeset
for help on using the changeset viewer.