mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
use cocoa values for the coding keys
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32644 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1baa775684
commit
053138cbce
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-18 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/NSSortDescriptor.m:
|
||||
Use Cocoa values for the coding keys.
|
||||
|
||||
2011-03-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Additions/GSObjCRuntime.m: Use old API to work around bug in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Implementation for NSSortDescriptor for GNUStep
|
||||
Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2011 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Saso Kiselkov <diablos@manga.sk>
|
||||
Date: 2005
|
||||
|
@ -163,10 +163,10 @@
|
|||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[coder encodeObject: _key forKey: @"Key"];
|
||||
[coder encodeBool: _ascending forKey: @"Ascending"];
|
||||
[coder encodeObject: _key forKey: @"NSKey"];
|
||||
[coder encodeBool: _ascending forKey: @"NSAscending"];
|
||||
[coder encodeObject: NSStringFromSelector(_selector)
|
||||
forKey: @"Selector"];
|
||||
forKey: @"NSSelector"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -182,10 +182,10 @@
|
|||
{
|
||||
if ([decoder allowsKeyedCoding])
|
||||
{
|
||||
ASSIGN(_key, [decoder decodeObjectForKey: @"Key"]);
|
||||
_ascending = [decoder decodeBoolForKey: @"Ascending"];
|
||||
ASSIGN(_key, [decoder decodeObjectForKey: @"NSKey"]);
|
||||
_ascending = [decoder decodeBoolForKey: @"NSAscending"];
|
||||
_selector = NSSelectorFromString([decoder
|
||||
decodeObjectForKey: @"Selector"]);
|
||||
decodeObjectForKey: @"NSSelector"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue