Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Moved user interaction methods into a new category
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rozanski committed Mar 27, 2011
1 parent 35da629 commit f89a40f
Show file tree
Hide file tree
Showing 9 changed files with 604 additions and 591 deletions.
1 change: 1 addition & 0 deletions Classes/PXListDocumentView.m
Expand Up @@ -10,6 +10,7 @@

#import "PXListView.h"
#import "PXListView+Private.h"
#import "PXListView+UserInteraction.h"

@implementation PXListDocumentView

Expand Down
3 changes: 0 additions & 3 deletions Classes/PXListView+Private.h
Expand Up @@ -37,9 +37,6 @@ typedef NSInteger PXIsDragStartResult;
- (void)updateCells;
- (void)enqueueCell:(PXListViewCell*)cell;

- (void)handleMouseDown:(NSEvent*)theEvent inCell:(PXListViewCell*)theCell;
- (void)handleMouseDownOutsideCells:(NSEvent*)theEvent;

- (void)contentViewBoundsDidChange:(NSNotification*)notification;

@end
13 changes: 12 additions & 1 deletion Classes/PXListView+UserInteraction.h
Expand Up @@ -8,7 +8,18 @@

#import <Foundation/Foundation.h>

#import "PXListView.h"

@interface PXListView (PXListView_UserInteraction)
@interface PXListView (UserInteraction)

- (void)handleMouseDown:(NSEvent*)theEvent inCell:(PXListViewCell*)theCell;
- (void)handleMouseDownOutsideCells:(NSEvent*)theEvent;

- (BOOL)attemptDragWithMouseDown:(NSEvent*)theEvent inCell:(PXListViewCell*)theCell;
- (NSImage*)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows
event:(NSEvent*)dragEvent clickedCell:(PXListViewCell*)clickedCell
offset:(NSPointPointer)dragImageOffset;
- (void)setShowsDropHighlight:(BOOL)inState;
- (void)setDropRow:(NSUInteger)row dropHighlight:(PXListViewDropHighlight)dropHighlight;

@end

0 comments on commit f89a40f

Please sign in to comment.