mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:20:47 +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
|
@ -154,17 +154,31 @@
|
|||
{
|
||||
[super encodeWithCoder: aCoder];
|
||||
|
||||
// FIXME: Should this be changed to encodeConditionalObject: ?
|
||||
[aCoder encodeObject: _delegate];
|
||||
[aCoder encodeValueOfObjCType: @encode(SEL) at: &_selector];
|
||||
if ([aCoder allowsKeyedCoding])
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
else
|
||||
{
|
||||
// FIXME: Should this be changed to encodeConditionalObject: ?
|
||||
[aCoder encodeObject: _delegate];
|
||||
[aCoder encodeValueOfObjCType: @encode(SEL) at: &_selector];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
self = [super initWithCoder: aDecoder];
|
||||
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_delegate];
|
||||
[aDecoder decodeValueOfObjCType: @encode(SEL) at: &_selector];
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
else
|
||||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_delegate];
|
||||
[aDecoder decodeValueOfObjCType: @encode(SEL) at: &_selector];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue