Files
gitx/PBViewController.h
T
Nathan Kinsinger 98920bf0b1 Merge remote branch 'refs/remotes/dgrijalva/stable' into experimental
Conflicts:
	ApplicationController.m
	GitX.xcodeproj/project.pbxproj
	PBGitCommitView.xib
	PBGitHistoryView.xib
	PBGitRevisionCell.m
	PBGitTree.m
	PBGitWindowController.m
	PBViewController.m
	html/views/history/history.js
	html/views/history/index.html
2010-05-29 21:04:21 -06:00

44 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;
}
@property (readonly) __weak PBGitRepository *repository;
@property(copy) NSString *status;
@property(assign) BOOL isBusy;
- (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller;
/* removeView is called whenever the view is removed, either to be swapped
* with a different view, or when the repository window will be destroyed
*/
- (void) removeView;
/* 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