Files
gitx/PBGitRevList.h
Nathan Kinsinger a849424a46 Add a cleanup method to the history list.
The cleanup method cancels any background threads and removes KV observers when the repository document is closed.

Also removed KV observers that are no longer needed.
2010-07-04 09:46:15 -06:00

34 lines
655 B
Objective-C

//
// PBGitRevList.h
// GitX
//
// Created by Pieter de Bie on 17-06-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class PBGitRepository;
@class PBGitRevSpecifier;
@interface PBGitRevList : NSObject {
NSMutableArray *commits;
PBGitRepository *repository;
PBGitRevSpecifier *currentRev;
BOOL isGraphing;
NSThread *parseThread;
BOOL isParsing;
BOOL resetCommits;
}
- (id) initWithRepository:(PBGitRepository *)repo rev:(PBGitRevSpecifier *)rev shouldGraph:(BOOL)graph;
- (void) loadRevisons;
- (void)cancel;
@property (retain) NSMutableArray *commits;
@property (readonly) BOOL isParsing;
@end