mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:10:36 +00:00
Nib compatibility code merge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22957 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c91dddc12b
commit
d5e4858a60
36 changed files with 3162 additions and 1236 deletions
|
@ -433,10 +433,9 @@ framework intact.
|
|||
{
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
//NSLayoutManager *manager = [aDecoder decodeObjectForKey: @"NSLayoutManager"];
|
||||
NSTextView *view = [aDecoder decodeObjectForKey: @"NSTextView"];
|
||||
NSSize size = NSZeroSize;
|
||||
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSWidth"])
|
||||
{
|
||||
size.width = [aDecoder decodeFloatForKey: @"NSWidth"];
|
||||
|
@ -444,10 +443,16 @@ framework intact.
|
|||
self = [self initWithContainerSize: size];
|
||||
if ([aDecoder containsValueForKey: @"NSTCFlags"])
|
||||
{
|
||||
// FIXME
|
||||
//int flags = [aDecoder decodeIntForKey: @"NSTCFlags"];
|
||||
int flags = [aDecoder decodeIntForKey: @"NSTCFlags"];
|
||||
|
||||
// decode the flags.
|
||||
_widthTracksTextView = flags & 1;
|
||||
_heightTracksTextView = flags & 2;
|
||||
_observingFrameChanges = flags & 4;
|
||||
}
|
||||
// No need to set manager as the decoding of the layout manager does it
|
||||
|
||||
// decoding the manager adds this text container automatically...
|
||||
[aDecoder decodeObjectForKey: @"NSLayoutManager"];
|
||||
[self setTextView: view];
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue