mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:40:48 +00:00
* Source/NSEvent.m,
* Source/NSParagraphStyle.m: Use NSInteger instead of enumerator type name for decoding and encoding. * Header/AppKit/NSFontPanel.h, * Header/AppKit/NSOpenPanel.h, * Header/AppKit/NSDataLinkPanel.h, * Source/NSDataLinkPanel.m, * Header/AppKit/NSForm.h, * Source/NSForm.m, * Header/AppKit/NSHelpPanel.h, * Source/NSHelpPanel.m, * Source/NSColorPanel.m: Remove unused encoding/decoding * methods. * Source/NSCustomImageRep.m, * Source/NSEPSImageRep.m, * Source/NSMovie.m, * Source/NSRulerMarker.m, * Source/NSColorList.m: Flag missing keyed encoding/decoding. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36377 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7ce551f716
commit
20dbc07afd
17 changed files with 150 additions and 129 deletions
|
@ -533,17 +533,30 @@ static NSColorList *themeColorList = nil;
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
{
|
||||
[aCoder encodeObject: _name];
|
||||
[aCoder encodeObject: _colorDictionary];
|
||||
[aCoder encodeObject: _orderedColorKeys];
|
||||
if ([aCoder allowsKeyedCoding])
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeObject: _name];
|
||||
[aCoder encodeObject: _colorDictionary];
|
||||
[aCoder encodeObject: _orderedColorKeys];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_name];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_colorDictionary];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_orderedColorKeys];
|
||||
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
else
|
||||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_name];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_colorDictionary];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_orderedColorKeys];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue