mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-23 06:20:47 +00:00
Make nib able to save again now that we know what was wrong with loading and saving
This commit is contained in:
parent
76944c1a21
commit
83364fb5be
2 changed files with 8 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
{
|
||||
NSName = "GSNibFileType";
|
||||
NSHumanReadableName = "Cocoa Nib";
|
||||
NSRole = Viewer;
|
||||
NSRole = Editor;
|
||||
NSDocumentClass = GormDocument;
|
||||
NSUnixExtensions = ( "nib" );
|
||||
NSIcon = "GormNib.tiff";
|
||||
|
|
|
@ -203,7 +203,8 @@
|
|||
{
|
||||
continue;
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
// If it's NSApplication (most likely the File's Owner)
|
||||
// skip it...
|
||||
//
|
||||
|
@ -396,6 +397,11 @@
|
|||
[obj setTarget: nil];
|
||||
[obj setAction: NULL];
|
||||
}
|
||||
else if([obj isKindOfClass: [NSCustomObject class]])
|
||||
{
|
||||
GormObjectProxy *o = [[GormObjectProxy alloc] initWithClassName: [obj className]];
|
||||
obj = o; // replace the object if it's an NSCustomObject...
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue