mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
b18b957190
Subclasses NSOutlineView to PBQLOutlineView that takes a controller which should respond to toggleQuickLook:. This is used for our tree walker to actually show QuickLook when space is pressed.
24 lines
374 B
Objective-C
24 lines
374 B
Objective-C
//
|
|
// PBQLOutlineView.m
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 6/17/08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "PBQLOutlineView.h"
|
|
|
|
|
|
@implementation PBQLOutlineView
|
|
|
|
- (void) keyDown: (NSEvent *) event
|
|
{
|
|
if ([[event characters] isEqualToString:@" "]) {
|
|
[controller toggleQuickView:self];
|
|
return;
|
|
}
|
|
|
|
[super keyDown:event];
|
|
}
|
|
@end
|