mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/GSNibLoader.m: Added logging to help debugging of issues
with nib loading. * Source/NSTextContainer.m: -[NSTextContainer initWithCoder:] removed call to unarchive the textview to prevent a leak. Also don't set the textview as the text container. Currently we just get the contents of the text container and rebuild it in NSTextView.m. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29116 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
416dcffdb4
commit
483044e48c
3 changed files with 28 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2009-12-11 13:09-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSNibLoader.m: Added logging to help debugging of issues
|
||||
with nib loading.
|
||||
* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
|
||||
removed call to unarchive the textview to prevent a leak. Also
|
||||
don't set the textview as the text container. Currently we
|
||||
just get the contents of the text container and rebuild it
|
||||
in NSTextView.m.
|
||||
|
||||
2009-12-10 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSKKeyValueBinding.h:
|
||||
|
|
|
@ -84,8 +84,20 @@
|
|||
NSLog(@"Nib without container object!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"IB.objectdata not found when loading nib.");
|
||||
}
|
||||
RELEASE(unarchiver);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Could not instantiate unarchiver.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Data passed to nib loading method is nil.");
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
|
@ -140,6 +152,10 @@
|
|||
NSLog(@"Could not load Nib file: %@",fileName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Nib file specified %@, could not be found.",fileName);
|
||||
}
|
||||
|
||||
return loaded;
|
||||
}
|
||||
|
|
|
@ -459,8 +459,8 @@ framework intact.
|
|||
{
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
NSTextView *view = [aDecoder decodeObjectForKey: @"NSTextView"];
|
||||
NSSize size = NSZeroSize;
|
||||
// NSTextView *view = [aDecoder decodeObjectForKey: @"NSTextView"];
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSWidth"])
|
||||
{
|
||||
|
@ -483,7 +483,7 @@ framework intact.
|
|||
_layoutManager = [aDecoder decodeObjectForKey: @"NSLayoutManager"];
|
||||
}
|
||||
|
||||
[self setTextView: view];
|
||||
// [self setTextView: view];
|
||||
return self;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue