From efdd22605113a218ac3b4756769b15e7c91b244a Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Wed, 6 Jun 2001 18:07:32 +0000 Subject: [PATCH] Added copyWithZone: to NSTextAttachment to let it work as a attribute in a NSAttributedString. This may be just a temporary work around. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10093 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextAttachment.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/NSTextAttachment.m b/Source/NSTextAttachment.m index 07d47bdce..22d5e4535 100644 --- a/Source/NSTextAttachment.m +++ b/Source/NSTextAttachment.m @@ -335,4 +335,11 @@ return self; } +- (id) copyWithZone: (NSZone*)z +{ + // This method should not be here it is just a hack to work around a problem + // in NSAttributedString. There a dictionary including a NSTextAttachment gets copied, + // which fails without this. + return RETAIN(self); +} @end