From a2683d66ba33e23fb37fb9e9a7cce7ff3be1ff04 Mon Sep 17 00:00:00 2001 From: David Ayers Date: Thu, 20 Mar 2003 13:59:29 +0000 Subject: [PATCH] * Source/NSCell.m ([NSCell encodeWithCoder:]): Reinsert encoding of isContinuous to insure backward compatiblity of archives. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16215 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSCell.m | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1e3d8462e..789fdc1c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-03-20 David Ayers + + * Source/NSCell.m ([NSCell encodeWithCoder:]): Reinsert encoding + of isContinuous to insure backward compatiblity of archives. + 2003-03-20 Serg Stoyan * Source/NSMenuView.m diff --git a/Source/NSCell.m b/Source/NSCell.m index 2199653ae..0d42717d7 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -1945,7 +1945,10 @@ static NSColor *shadowCol; flag = _cell.is_selectable; [aCoder encodeValueOfObjCType: @encode(BOOL) at: &flag]; // This used to be is_continuous, which has been replaced. - //flag = _cell.is_continuous; + /* Ayers 20.03.2003: But we must continue to encode it for backward + compatibility or current releases will have undefined behavior when + decoding archives (i.e. .gorm files) encoded by this version. */ + flag = [self isContinuous]; [aCoder encodeValueOfObjCType: @encode(BOOL) at: &flag]; flag = _cell.allows_mixed_state; [aCoder encodeValueOfObjCType: @encode(BOOL) at: &flag];