Merge branch 'pu/pb/index_quick_fix' into stable
[GitX.git] / PBViewController.m
blob510b7a7f316ed0a3c5431ff391fe61480e81bc72
1 //
2 //  PBViewController.m
3 //  GitX
4 //
5 //  Created by Pieter de Bie on 22-09-08.
6 //  Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import "PBViewController.h"
12 @implementation PBViewController
14 @synthesize repository, viewToolbar;
16 - (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller
18         NSString *nibName = [[[self class] description] stringByReplacingOccurrencesOfString:@"Controller"
19                                                                                                                                                           withString:@"View"];
20         if(self = [self initWithNibName:nibName bundle:nil]) {
21                 repository = theRepository;
22                 superController = controller;
23         }
24         
25         return self;
28 - (void) removeView
30         [self unbind:@"repository"];
31         [[self view] removeFromSuperview];      // remove the current view
34 - (void) awakeFromNib
38 // This is called when the view is displayed again; it 
39 // should be updated to show the most recent information
40 - (void) updateView
44 - (NSResponder *)firstResponder;
46         return nil;
48 @end