mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
53d92fb73e
- make sure to remove themselves from KV and notification center observers
- add the PBWebHistoryController to PBHistoryController so it can be told to close
- replaced the -removeView methods with -closeView (-removeView was not being used)
- clear any obj-c objects set in web scripting objects
This last item seems to be the reason that the web controllers and the current commit did not get collected which then held the repository document from being collected as well.
43 lines
1.1 KiB
Objective-C
43 lines
1.1 KiB
Objective-C
//
|
|
// PBViewController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 22-09-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitRepository.h"
|
|
#import "PBGitWindowController.h"
|
|
|
|
@interface PBViewController : NSViewController {
|
|
__weak PBGitRepository *repository;
|
|
__weak PBGitWindowController *superController;
|
|
|
|
NSString *status;
|
|
BOOL isBusy;
|
|
BOOL hasViewLoaded;
|
|
}
|
|
|
|
@property (readonly) __weak PBGitRepository *repository;
|
|
@property(copy) NSString *status;
|
|
@property(assign) BOOL isBusy;
|
|
|
|
- (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller;
|
|
|
|
/* closeView is called when the repository window will be closed */
|
|
- (void)closeView;
|
|
|
|
/* Updateview is called every time it is loaded into the main view */
|
|
- (void) updateView;
|
|
|
|
/* Called after awakeFromNib:, and the view has been loaded into the main view.
|
|
* Useful for resizing stuff after everything has been set in the right position
|
|
*/
|
|
- (void)viewLoaded;
|
|
|
|
- (NSResponder *)firstResponder;
|
|
- (IBAction) refresh:(id)sender;
|
|
|
|
@end
|