Tidied some stuff up for IB

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5373 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-03 14:51:56 +00:00
parent 9ebe5e5592
commit 2b1663a41e
4 changed files with 33 additions and 5 deletions

View file

@ -2772,18 +2772,21 @@ resetCursorRectsForView(NSView *theView)
*/
- (void) encodeWithCoder: (NSCoder*)aCoder
{
BOOL flag;
id nxt = RETAIN([self nextResponder]);
BOOL flag;
NSPoint p;
id nxt = RETAIN([self nextResponder]);
[self setNextResponder: nil];
[super encodeWithCoder: aCoder];
NSDebugLog(@"NSWindow: start encoding\n");
[aCoder encodeRect: [[self contentView] frame]];
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &style_mask];
[aCoder encodeValueOfObjCType: @encode(NSBackingStoreType) at: &backing_type];
[aCoder encodePoint: NSMakePoint(NSMinX([self frame]), NSMaxY([self frame]))];
[aCoder encodeObject: content_view];
[aCoder encodeObject: background_color];
[aCoder encodeObject: represented_filename];
@ -2839,6 +2842,7 @@ resetCursorRectsForView(NSView *theView)
{
NSSize aSize;
NSRect aRect;
NSPoint p;
unsigned aStyle;
NSBackingStoreType aBacking;
int anInt;
@ -2857,6 +2861,7 @@ resetCursorRectsForView(NSView *theView)
defer: NO
screen: nil];
p = [aDecoder decodePoint];
obj = [aDecoder decodeObject];
[self setContentView: obj];
obj = [aDecoder decodeObject];
@ -2915,6 +2920,7 @@ resetCursorRectsForView(NSView *theView)
[aDecoder decodeValueOfObjCType: @encode(id)
at: &_initial_first_responder];
[self setFrameTopLeftPoint: p];
NSDebugLog(@"NSWindow: finish decoding\n");
}