Skip to content

Commit ede70b1

Browse files
committed
Override -document so it has the correct type
1 parent d72100a commit ede70b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Classes/Controllers/PBGitWindowController.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@class PBViewController, PBGitSidebarController, PBGitCommitController, PBGitRepository;
1313
@class RJModalRepoSheet;
1414
@class PBGitRef;
15+
@class PBGitRepositoryDocument;
1516

1617
@interface PBGitWindowController : NSWindowController<NSWindowDelegate> {
1718
__weak PBViewController *contentController;
@@ -27,6 +28,8 @@
2728
}
2829

2930
@property (nonatomic, strong) PBGitRepository *repository;
31+
/* This is assign because that's what NSWindowController says :-S */
32+
@property (assign) PBGitRepositoryDocument *document;
3033

3134
- (id)initWithRepository:(PBGitRepository*)theRepository displayDefault:(BOOL)display;
3235

Classes/Controllers/PBGitWindowController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@implementation PBGitWindowController
2929

3030
@synthesize repository;
31+
@dynamic document;
3132

3233
- (id)initWithRepository:(PBGitRepository*)theRepository displayDefault:(BOOL)displayDefault
3334
{

0 commit comments

Comments
 (0)