Skip to content
This repository
Newer
Older
100644 62 lines (49 sloc) 1.104 kb
53dfea54 » pieter
2008-09-22 PBViewController: Extract common code to a superclass
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 //
8
9 #import "PBViewController.h"
10
11
12 @implementation PBViewController
13
64f4276e » brotherbard
2010-03-06 Delete old toolbars and create new ones
14 @synthesize repository;
10274aef » David Catmull
2011-06-12 PBViewController.superController accessor
15 @synthesize superController;
1b41171d » brotherbard
2010-02-18 Add a bottom content border/toolbar to the repository window
16 @synthesize status;
17 @synthesize isBusy;
53dfea54 » pieter
2008-09-22 PBViewController: Extract common code to a superclass
18
19 - (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller
20 {
21 NSString *nibName = [[[self class] description] stringByReplacingOccurrencesOfString:@"Controller"
22 withString:@"View"];
f9ccf1fe »
2011-03-10 Solved compilation warnings
23 if((self = [self initWithNibName:nibName bundle:nil])) {
53dfea54 » pieter
2008-09-22 PBViewController: Extract common code to a superclass
24 repository = theRepository;
25 superController = controller;
26 }
27
28 return self;
29 }
30
53d92fb7 » brotherbard
2010-07-03 Cleanup the views when the repository window closes and stop memory l…
31 - (void)closeView
1028157c » pieter
2008-09-28 Fix memory leaks
32 {
3dd63854 » pieter
2008-11-26 Fix memory leaks
33 [self unbind:@"repository"];
2c6a16a6 » brotherbard
2010-06-20 Stop a view that was not loaded from being loaded while being removed.
34 if (hasViewLoaded)
35 [[self view] removeFromSuperview]; // remove the current view
1028157c » pieter
2008-09-28 Fix memory leaks
36 }
e3294931 » pieter
2008-10-03 Move toolbar to view xib
37
2c6a16a6 » brotherbard
2010-06-20 Stop a view that was not loaded from being loaded while being removed.
38 - (void)awakeFromNib
e3294931 » pieter
2008-10-03 Move toolbar to view xib
39 {
2c6a16a6 » brotherbard
2010-06-20 Stop a view that was not loaded from being loaded while being removed.
40 hasViewLoaded = YES;
e3294931 » pieter
2008-10-03 Move toolbar to view xib
41 }
cd4ee1b9 » pieter
2008-12-22 Update views when switching
42
acfa464e » pieter
2009-09-21 PBViewController: add a method that is called when a view is loaded f…
43 - (NSResponder *)firstResponder;
cd4ee1b9 » pieter
2008-12-22 Update views when switching
44 {
acfa464e » pieter
2009-09-21 PBViewController: add a method that is called when a view is loaded f…
45 return nil;
cd4ee1b9 » pieter
2008-12-22 Update views when switching
46 }
f2a37df9 » nriley
2009-06-16 Set keyboard focus reasonably when switching between views.
47
acfa464e » pieter
2009-09-21 PBViewController: add a method that is called when a view is loaded f…
48 // The next methods should be implemented in the subclass if necessary
49 - (void)updateView
f2a37df9 » nriley
2009-06-16 Set keyboard focus reasonably when switching between views.
50 {
51 }
4e0871c2 » rastersize
2009-07-17 Add on window selection refresh.
52
53 - (IBAction) refresh:(id)sender
54 {
55 return;
56 }
68ea0b1a » rastersize
2009-09-23 Merge branch 'stable' of git://github.com/pieter/gitx
57
acfa464e » pieter
2009-09-21 PBViewController: add a method that is called when a view is loaded f…
58 - (void)viewLoaded
59 {
60 }
61
53dfea54 » pieter
2008-09-22 PBViewController: Extract common code to a superclass
62 @end
Something went wrong with that request. Please try again.