mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Crudely working NSSplitViewController
This commit is contained in:
parent
726c847803
commit
a59e998e20
1 changed files with 9 additions and 0 deletions
|
@ -27,8 +27,10 @@
|
|||
#import "AppKit/NSStoryboardSegue.h"
|
||||
#import "AppKit/NSWindowController.h"
|
||||
#import "AppKit/NSViewController.h"
|
||||
#import "AppKit/NSSplitViewController.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "AppKit/NSApplication.h"
|
||||
#import "AppKit/NSView.h"
|
||||
|
||||
@implementation NSStoryboardSegue
|
||||
|
||||
|
@ -114,6 +116,13 @@
|
|||
[w setTitle: [_destinationController title]];
|
||||
[_sourceController showWindow: self];
|
||||
}
|
||||
else if ([_relationship isEqualToString: @"splitItems"])
|
||||
{
|
||||
NSView *v = [_destinationController view];
|
||||
NSSplitViewController *svc = (NSSplitViewController *)_sourceController;
|
||||
NSLog(@"sourceController = %@", _sourceController);
|
||||
[[svc splitView] addSubview: v];
|
||||
}
|
||||
}
|
||||
else if ([_kind isEqualToString: @"modal"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue