Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a67af29bd7
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (54 sloc) 1.845 kb
// PXListView.h
// PXListView
// Created by Alex Rozanski on 29/05/2010.
// Copyright 2010 Alex Rozanski. All rights reserved.
#import <Cocoa/Cocoa.h>
#import "PXListViewDelegate.h"
#import "PXListViewCell.h"
#define PXLog(...) NSLog(__VA_ARGS__)
@interface PXListView : NSScrollView
id <PXListViewDelegate> _delegate;
NSMutableArray *_reusableCells;
NSMutableArray *_visibleCells;
NSRange _currentRange;
NSUInteger _numberOfRows;
NSMutableIndexSet *_selectedRows;
NSRange _visibleRange;
CGFloat _totalHeight;
CGFloat *_cellYOffsets;
CGFloat _cellSpacing;
BOOL _allowsEmptySelection;
BOOL _allowsMultipleSelection;
NSInteger _lastSelectedRow;
BOOL _verticalMotionCanBeginDrag;
BOOL _usesLiveResize;
CGFloat _widthPriorToResize;
NSUInteger _dropRow;
PXListViewDropHighlight _dropHighlight;
@property (nonatomic, assign) IBOutlet id <PXListViewDelegate> delegate;
@property (nonatomic, retain) NSIndexSet *selectedRows;
@property (nonatomic, assign) NSUInteger selectedRow;
@property (nonatomic, assign) BOOL allowsEmptySelection;
@property (nonatomic, assign) BOOL allowsMultipleSelection;
@property (nonatomic, assign) BOOL verticalMotionCanBeginDrag;
@property (nonatomic, assign) CGFloat cellSpacing;
@property (nonatomic, assign) BOOL usesLiveResize;
- (void)reloadData;
- (PXListViewCell*)dequeueCellWithReusableIdentifier:(NSString*)identifier;
- (NSArray*)visibleCells;
-(PXListViewCell *)cellForRowAtIndex:(NSUInteger)inIndex;
- (NSRange)visibleRange;
- (NSRect)rectOfRow:(NSUInteger)row;
- (void)deselectRows;
- (void)selectRowIndexes:(NSIndexSet*)rows byExtendingSelection:(BOOL)doExtend;
- (void)scrollToRow:(NSUInteger)row;
- (void)scrollRowToVisible:(NSUInteger)row;
Jump to Line
Something went wrong with that request. Please try again.