mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:20:47 +00:00
Misc fixes for Tims FileViewer app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4148 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a955128474
commit
0895d7ea4f
7 changed files with 26 additions and 7 deletions
|
@ -106,16 +106,19 @@ extern BOOL _fileOwnerDecoded;
|
|||
customView->extension = [unarchiver decodeObjectWithName:@"extension"];
|
||||
customView->realObject = [unarchiver decodeObjectWithName:@"realObject"];
|
||||
customView->realObject = _nibOwner;
|
||||
[customView setFrame:[unarchiver decodeRectWithName:@"frame"]];
|
||||
|
||||
return customView;
|
||||
}
|
||||
|
||||
customView->className = [unarchiver decodeStringWithName:@"className"];
|
||||
customView->extension = [unarchiver decodeObjectWithName:@"extension"];
|
||||
customView->realObject = [unarchiver decodeObjectWithName:@"realObject"];
|
||||
[customView setFrame:[unarchiver decodeRectWithName:@"frame"]];
|
||||
|
||||
class = NSClassFromString (customView->className);
|
||||
if (class)
|
||||
customView->realObject = [[class alloc] init];
|
||||
customView->realObject = [[class alloc] initWithFrame:[customView frame]];
|
||||
else {
|
||||
NSLog (@"Class %@ not linked into application!", customView->className);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue