Files
gitx/PBChangedFile.h
T
Pieter de Bie 1028157cbc Fix memory leaks
This changes a bunch of ivars to __weak's, to avoid reference loops.
Furthermore, in PBGitHistoryController, we need to call [webView close],
otherwise some memory will never be freed?
2008-09-28 16:14:00 +02:00

36 lines
679 B
Objective-C

//
// PBChangedFile.h
// GitX
//
// Created by Pieter de Bie on 22-09-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGitRepository.h"
typedef enum {
NEW,
MODIFIED,
DELETED
} PBChangedFileStatus;
@interface PBChangedFile : NSObject {
NSString *path;
BOOL cached;
__weak PBGitRepository *repository;
PBChangedFileStatus status;
}
@property (readonly) NSString *path;
@property (assign) PBChangedFileStatus status;
@property (assign) BOOL cached;
- (NSImage *)icon;
- (NSString *)changes;
- (void) stageChanges;
- (void) unstageChanges;
- (id) initWithPath:(NSString *)p andRepository:(PBGitRepository *)r;
@end