mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 10:51:56 +00:00
Changes to encode and decode sortDescriptors into the gorm file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33430 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4955c013e
commit
f69ffcb8e3
1 changed files with 7 additions and 2 deletions
|
@ -69,7 +69,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
static NSNotificationCenter *nc = nil;
|
static NSNotificationCenter *nc = nil;
|
||||||
|
|
||||||
static const int currentVersion = 4;
|
static const int currentVersion = 5;
|
||||||
|
|
||||||
static NSRect oldDraggingRect;
|
static NSRect oldDraggingRect;
|
||||||
static int oldDropRow;
|
static int oldDropRow;
|
||||||
|
@ -5459,6 +5459,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
||||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_allowsColumnReordering];
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_allowsColumnReordering];
|
||||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_autoresizesAllColumnsToFit];
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_autoresizesAllColumnsToFit];
|
||||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_verticalMotionDrag];
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_verticalMotionDrag];
|
||||||
|
[aCoder encodeObject: _sortDescriptors];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5664,6 +5665,10 @@ This method is deprecated, use -columnIndexesInRect:. */
|
||||||
{
|
{
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_verticalMotionDrag];
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_verticalMotionDrag];
|
||||||
}
|
}
|
||||||
|
if (version >= 5)
|
||||||
|
{
|
||||||
|
ASSIGN(_sortDescriptors, [aDecoder decodeObject]);
|
||||||
|
}
|
||||||
|
|
||||||
if (_numberOfColumns > 0)
|
if (_numberOfColumns > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue