mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:50:48 +00:00
Use NSNibOwner instead of @"NSOwner". Remove the hard coded "gorm"
extension. Try to use higher level NIB loading methods where possible. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30077 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e523ff6a0e
commit
e5373254e4
8 changed files with 102 additions and 98 deletions
|
@ -26,17 +26,18 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <Foundation/NSBundle.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSEnumerator.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSNotification.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#include "AppKit/NSNibLoading.h"
|
||||
#include "AppKit/NSPanel.h"
|
||||
#include "AppKit/NSWindowController.h"
|
||||
#include "NSDocumentFrameworkPrivate.h"
|
||||
#import "AppKit/NSNib.h"
|
||||
#import "AppKit/NSNibLoading.h"
|
||||
#import "AppKit/NSPanel.h"
|
||||
#import "AppKit/NSWindowController.h"
|
||||
#import "NSDocumentFrameworkPrivate.h"
|
||||
|
||||
@implementation NSWindowController
|
||||
|
||||
|
@ -468,8 +469,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
table = [NSDictionary dictionaryWithObject: _owner forKey: @"NSOwner"];
|
||||
|
||||
table = [NSDictionary dictionaryWithObject: _owner forKey: NSNibOwner];
|
||||
if ([NSBundle loadNibFile: [self windowNibPath]
|
||||
externalNameTable: table
|
||||
withZone: [_owner zone]])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue