* GormCore/GormDocument.h: Change declaration for window member

from NSWindow to GormDocumentWindow.
	* GormCore/GormDocument.m: Move cast from call to setDocument:
	to call to _docWindow private method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24181 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-12-04 01:06:28 +00:00
parent c86b0ada46
commit 7fa91a4e06
3 changed files with 14 additions and 5 deletions

View file

@ -1,6 +1,14 @@
2006-12-03 19:54-EST Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.h: Change declaration for window member
from NSWindow to GormDocumentWindow.
* GormCore/GormDocument.m: Move cast from call to setDocument:
to call to _docWindow private method.
2006-12-03 19:34-EST Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Use setDocument: method in awakeFromNib.
* GormCore/GormDocument.m: Cast window for call of
setDocument: method in awakeFromNib.
* GormCore/GormDocumentWindow.h: Add setDocument: method.
2006-12-02 Matt Rice <ratmice@gmail.com>

View file

@ -31,7 +31,8 @@
#include <GNUstepGUI/GSNibContainer.h>
#include <InterfaceBuilder/InterfaceBuilder.h>
@class GormClassManager, GormClassEditor, GormObjectProxy, GormFilesOwner, GormFilePrefsManager;
@class GormClassManager, GormClassEditor, GormObjectProxy, GormFilesOwner,
GormFilePrefsManager, GormDocumentWindow;
/*
* Trivial classes for connections from objects to their editors, and from
@ -61,7 +62,7 @@
GormFirstResponder *firstResponder;
GormObjectProxy *fontManager;
NSMapTable *objToName;
NSWindow *window;
GormDocumentWindow *window;
NSBox *selectionBox;
NSScrollView *scrollView;
NSScrollView *classesScrollView;

View file

@ -333,10 +333,10 @@ static NSImage *fileImage = nil;
id o = nil;
// get the window and cache it...
window = [self _docWindow];
window = (GormDocumentWindow *)[self _docWindow];
[IBResourceManager registerForAllPboardTypes:window
inDocument:self];
[(GormDocumentWindow *)window setDocument:self];
[window setDocument: self];
// set up the toolbar...
toolbar = [(NSToolbar *)[NSToolbar alloc] initWithIdentifier: @"GormToolbar"];