mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
d3f97bdfcb
This used to be bound to the UserDefaults, but that introduced the
bug that switching the view in one window also switched it in other
open windows.
See 2e7cd5268d
32 lines
860 B
Objective-C
32 lines
860 B
Objective-C
//
|
|
// PBDetailController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 16-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitRepository.h"
|
|
|
|
@interface PBGitWindowController : NSWindowController {
|
|
IBOutlet NSSearchField* searchField;
|
|
IBOutlet NSArrayController* searchController;
|
|
IBOutlet NSArrayController *branchesController;
|
|
PBGitRepository* repository;
|
|
int selectedViewIndex;
|
|
IBOutlet NSView* contentView;
|
|
NSViewController* viewController;
|
|
}
|
|
|
|
@property (retain) PBGitRepository *repository;
|
|
@property (readonly) NSViewController *viewController;
|
|
@property (assign) int selectedViewIndex;
|
|
@property (retain) NSArrayController *searchController;
|
|
|
|
- (id)initWithRepository:(PBGitRepository*)theRepository;
|
|
|
|
- (void)changeViewController:(NSInteger)whichViewTag;
|
|
- (void) focusOnSearchField;
|
|
@end
|