* Source/NSTextStorage.m (-replacementObjectForPortCoder:):

Added this method as suggested by Richard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28464 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-08-15 22:05:08 +00:00
parent 0abc65f726
commit b29913b227
2 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2009-08-16 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextStorage.m (-replacementObjectForPortCoder:): Added
this method as suggested by Richard.
2009-08-15 17:17-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Tools/say/GNUmakefile

View file

@ -27,6 +27,7 @@
#include <Foundation/NSNotification.h>
#include <Foundation/NSException.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSPorCoder.h>
#include "AppKit/NSAttributedString.h"
#include "AppKit/NSTextStorage.h"
#include "GNUstepGUI/GSLayoutManager.h"
@ -34,8 +35,8 @@
@implementation NSTextStorage
static Class abstract;
static Class concrete;
static Class abstract;
static Class concrete;
static NSNotificationCenter *nc = nil;
@ -59,12 +60,8 @@ static NSNotificationCenter *nc = nil;
- (void) dealloc
{
[self setDelegate: nil];
RELEASE (_layoutManagers);
if (_delegate != nil)
{
[nc removeObserver: _delegate name: nil object: self];
_delegate = nil;
}
[super dealloc];
}
@ -342,6 +339,11 @@ static NSNotificationCenter *nc = nil;
return abstract;
}
- (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder
{
return self;
}
- (id) initWithCoder: (NSCoder*)aDecoder
{
self = [super initWithCoder: aDecoder];