Make nib able to save again now that we know what was wrong with loading and saving

This commit is contained in:
Gregory John Casamento 2024-04-11 06:11:18 -04:00
parent 76944c1a21
commit 83364fb5be
2 changed files with 8 additions and 2 deletions

View file

@ -24,7 +24,7 @@
{
NSName = "GSNibFileType";
NSHumanReadableName = "Cocoa Nib";
NSRole = Viewer;
NSRole = Editor;
NSDocumentClass = GormDocument;
NSUnixExtensions = ( "nib" );
NSIcon = "GormNib.tiff";

View file

@ -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;
}