* 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
This commit is contained in:
David Ayers 2003-03-20 13:59:29 +00:00
parent 8ba951b342
commit a2683d66ba
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-03-20 David Ayers <d.ayers@inode.at>
* Source/NSCell.m ([NSCell encodeWithCoder:]): Reinsert encoding
of isContinuous to insure backward compatiblity of archives.
2003-03-20 Serg Stoyan <stoyan@on.com.ua>
* Source/NSMenuView.m

View file

@ -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];