mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Prevents Gorm from using NSWindow internals in this editor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18483 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a98f69721a
commit
a38969cb36
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-25 17:59 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormInternalViewEditor.m: Change to remove dependency on internals
|
||||
of NSWindow: GSWindowView, in particular.
|
||||
|
||||
2004-01-20 08:53 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormViewWithContentViewEditor.m: Backing out previous change.
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "GormInternalViewEditor.h"
|
||||
|
||||
@class GormEditorToParent;
|
||||
@class GSWindowView;
|
||||
|
||||
static NSImage *verticalImage;
|
||||
static NSImage *horizontalImage;
|
||||
|
@ -50,7 +49,7 @@ static NSImage *horizontalImage;
|
|||
||
|
||||
[[self superview] isKindOfClass: [NSTabView class]]
|
||||
||
|
||||
[[self superview] isKindOfClass: [GSWindowView class]]
|
||||
[[[self superview] window] contentView] == self
|
||||
||
|
||||
[[self superview] isKindOfClass: [NSClipView class]]
|
||||
))
|
||||
|
@ -108,7 +107,7 @@ static NSImage *horizontalImage;
|
|||
[self setAutoresizingMask:
|
||||
NSViewWidthSizable | NSViewHeightSizable];
|
||||
}
|
||||
else if ([superview isKindOfClass: [GSWindowView class]])
|
||||
else if ([[superview window] contentView] == _editedObject)
|
||||
{
|
||||
[[superview window] setContentView: self];
|
||||
}
|
||||
|
@ -187,7 +186,7 @@ static NSImage *horizontalImage;
|
|||
[[[tabSuperview selectedTabViewItem] view]
|
||||
setFrame: [tabSuperview contentRect]];
|
||||
}
|
||||
else if ([superview isKindOfClass: [GSWindowView class]])
|
||||
else if ([[superview window] contentView] == self)
|
||||
{
|
||||
[self removeSubview: _editedObject];
|
||||
[[superview window] setContentView: _editedObject];
|
||||
|
|
Loading…
Reference in a new issue