mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
Changes to use _containerView as main internal view.
This commit is contained in:
parent
991b7fba21
commit
f9633b2db6
2 changed files with 12 additions and 10 deletions
|
@ -47,6 +47,7 @@
|
|||
NSMutableString *_path;
|
||||
NSString *_categoryPath;
|
||||
NSWindow *_window;
|
||||
NSView *_containerView;
|
||||
|
||||
BOOL _isEdited;
|
||||
BOOL _isEditable;
|
||||
|
|
|
@ -104,8 +104,7 @@
|
|||
|
||||
- (void)_createInternalView
|
||||
{
|
||||
NSRect rect = NSMakeRect(0,0,512,320);
|
||||
NSView *containerView;
|
||||
NSRect rect = NSMakeRect(0,0,512,320 - 15);
|
||||
|
||||
// Scroll view
|
||||
_intScrollView = [[NSScrollView alloc] initWithFrame:rect];
|
||||
|
@ -125,17 +124,19 @@
|
|||
[_intStatusField setSelectable:NO];
|
||||
[_intStatusField setDrawsBackground:NO];
|
||||
[_intStatusField setAutoresizingMask: NSViewWidthSizable];
|
||||
containerView = [[NSView alloc] init];
|
||||
[containerView addSubview:_intStatusField];
|
||||
[containerView addSubview:_intScrollView];
|
||||
_containerView = [[NSView alloc] init];
|
||||
[_containerView addSubview:_intStatusField];
|
||||
[_containerView addSubview:_intScrollView];
|
||||
|
||||
NSLog(@"%@", _intStatusField);
|
||||
NSLog(@"%@", [_intStatusField superview]);
|
||||
/*
|
||||
* Setting up ext view / scroll view / window
|
||||
*/
|
||||
[_intScrollView setDocumentView:_intEditorView];
|
||||
[_intEditorView setNeedsDisplay:YES];
|
||||
RELEASE(_intEditorView);
|
||||
RELEASE(containerView);
|
||||
// RELEASE(containerView);
|
||||
}
|
||||
|
||||
- (PCEditorView *)_createEditorViewWithFrame:(NSRect)fr
|
||||
|
@ -454,7 +455,7 @@
|
|||
|
||||
- (NSView *)editorView
|
||||
{
|
||||
if (!_intScrollView)
|
||||
if (!_containerView)
|
||||
{
|
||||
[self _createInternalView];
|
||||
}
|
||||
|
@ -463,11 +464,11 @@
|
|||
|
||||
- (NSView *)componentView
|
||||
{
|
||||
if (!_intScrollView)
|
||||
if (!_containerView)
|
||||
{
|
||||
[self _createInternalView];
|
||||
}
|
||||
return _intScrollView;
|
||||
return _containerView;
|
||||
}
|
||||
|
||||
- (NSString *)path
|
||||
|
@ -894,7 +895,7 @@
|
|||
{
|
||||
if ([sender isEqual:_window])
|
||||
{
|
||||
if (_intScrollView)
|
||||
if (_containerView)
|
||||
{
|
||||
// Just close if this file also displayed in int view
|
||||
_isWindowed = NO;
|
||||
|
|
Loading…
Reference in a new issue