Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (29 sloc) 1.23 KB
//
// PXListViewDelegate.h
// PXListView
//
// Created by Alex Rozanski on 29/05/2010.
// Copyright 2010 Alex Rozanski. http://perspx.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PXListViewDropHighlight.h"
extern NSString * const PXListViewSelectionDidChange;
@class PXListView, PXListViewCell;
@protocol PXListViewDelegate <NSObject>
@required
- (NSUInteger)numberOfRowsInListView:(PXListView*)aListView;
- (CGFloat)listView:(PXListView*)aListView heightOfRow:(NSUInteger)row;
- (PXListViewCell*)listView:(PXListView*)aListView cellForRow:(NSUInteger)row;
@optional
- (void)listViewSelectionDidChange:(NSNotification*)aNotification;
- (void)listView:(PXListView*)aListView rowDoubleClicked:(NSUInteger)rowIndex;
- (BOOL)listView:(PXListView*)aListView writeRowsWithIndexes:(NSIndexSet*)rowIndexes toPasteboard:(NSPasteboard *)pboard;
- (NSDragOperation)listView:(PXListView*)aListView
validateDrop:(id <NSDraggingInfo>)info
proposedRow:(NSUInteger)row
proposedDropHighlight:(PXListViewDropHighlight)dropHighlight;
- (BOOL)listView:(PXListView*)aListView
acceptDrop:(id <NSDraggingInfo>)info
row:(NSUInteger)row
dropHighlight:(PXListViewDropHighlight)dropHighlight;
@end
Jump to Line
Something went wrong with that request. Please try again.