* Source/GSStandardWindowDecorationView.m: Live window resize changes

for when using GNUstep decorations in resizeWindowStartingWithEvent:.
	* Source/NSLayoutManager.m: Unarchive the text containers into an 
	array in initWithCoder:.
	* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
	* Source/NSTextView.m: Changes to include text container from nib
	file into the nib loading process in initWithCoder:.   


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-05-23 15:50:51 +00:00
parent 242eb12644
commit 4991a29743
5 changed files with 32 additions and 8 deletions

View file

@ -1,3 +1,13 @@
2009-05-23 11:48-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
* Source/NSLayoutManager.m: Unarchive the text containers into an
array in initWithCoder:.
* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
* Source/NSTextView.m: Changes to include text container from nib
file into the nib loading process in initWithCoder:.
2009-05-22 Nicolas Roard <nicolas@roard.com>
Add a live resize for splitviews. Users can revert to the old behaviour
by doing: defaults write NSGlobalDomain GSUseGhostResize YES
@ -5,7 +15,8 @@
2009-05-14 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSApplication.m: fixed allocation of Mutable array instead of Array
* Source/NSApplication.m: fixed allocation of Mutable array instead of
Array
2009-05-14 14:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
@ -2425,8 +2436,8 @@
2008-05-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-selectRow:byExtendingSelection:,
-selectColumn:byExtendingSelection:, -rectOfColumn:, -rectOfRow:): Don't
raise an exception for invalid indexes.
-selectColumn:byExtendingSelection:, -rectOfColumn:, -rectOfRow:):
Don't raise an exception for invalid indexes.
2008-05-01 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -467,6 +467,7 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
NSPoint firstPoint, point;
NSRect newFrame, frame;
NSSize minSize, maxSize;
int num = 0;
/*
0 drag lower left corner
@ -513,6 +514,13 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
untilDate: [NSDate distantFuture]
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
num++;
if(num == 5)
{
[window setFrame: newFrame display: YES];
num = 0;
}
} while ([currentEvent type] != NSLeftMouseUp);
[window _releaseMouse: nil];

View file

@ -2292,7 +2292,6 @@ no_soft_invalidation:
if ([aDecoder allowsKeyedCoding])
{
/*
int i;
int flags;
NSArray *array = [aDecoder decodeObjectForKey: @"NSTextContainers"];
@ -2312,7 +2311,6 @@ no_soft_invalidation:
{
[self addTextContainer: [array objectAtIndex: i]];
}
*/
return self;
}
else

View file

@ -473,7 +473,11 @@ framework intact.
}
// decoding the manager adds this text container automatically...
[aDecoder decodeObjectForKey: @"NSLayoutManager"];
if ([aDecoder containsValueForKey: @"NSLayoutManager"])
{
_layoutManager = [aDecoder decodeObjectForKey: @"NSLayoutManager"];
}
[self setTextView: view];
return self;
}

View file

@ -852,16 +852,19 @@ that makes decoding and encoding compatible with the old code.
// currently not used....
if ([aDecoder containsValueForKey: @"NSTextContainer"])
{
{
/*
NSSize size = NSMakeSize(0,_maxSize.height);
NSTextContainer *aTextContainer = [self buildUpTextNetwork: NSZeroSize];
[aTextContainer setTextView: (NSTextView *)self];
/* See initWithFrame: for comments on this RELEASE */
// See initWithFrame: for comments on this RELEASE
RELEASE(self);
[aTextContainer setContainerSize: size];
[aTextContainer setWidthTracksTextView: YES];
[aTextContainer setHeightTracksTextView: NO];
*/
_textContainer = [aDecoder decodeObjectForKey: @"NSTextContainer"];
}
if ([aDecoder containsValueForKey: @"NSTVFlags"])