Add check for relationship value window.shadowedContentViewController

This commit is contained in:
Gregory John Casamento 2020-07-21 05:22:36 -04:00
parent 2aa154b1e4
commit 2208132e41
3 changed files with 10 additions and 7 deletions

View file

@ -37,7 +37,7 @@ extern "C" {
@class NSSplitView, NSSplitViewItem, NSArray, NSMutableArray;
@interface NSSplitViewController : NSViewController <NSCoding, NSCopying>
@interface NSSplitViewController : NSViewController
{
CGFloat _minimumThicknessForInlineSidebars;
NSMutableArray *_splitViewItems;

View file

@ -62,7 +62,7 @@ typedef NSInteger NSTitlebarSeparatorStyle;
@class NSViewController;
@interface NSSplitViewItem : NSObject <NSCoding, NSCopying>
@interface NSSplitViewItem : NSObject <NSCoding>
{
CGFloat _automaticMaximumThickness;
CGFloat _preferredThicknessFraction;

View file

@ -106,11 +106,14 @@
// Perform segue based on it's kind...
if ([_kind isEqualToString: @"relationship"])
{
NSWindow *w = [_sourceController window];
NSView *v = [_destinationController view];
[w setContentView: v];
[w setTitle: [_destinationController title]];
[_sourceController showWindow: self];
if ([_relationship isEqualToString: @"window.shadowedContentViewController"])
{
NSWindow *w = [_sourceController window];
NSView *v = [_destinationController view];
[w setContentView: v];
[w setTitle: [_destinationController title]];
[_sourceController showWindow: self];
}
}
else if ([_kind isEqualToString: @"modal"])
{