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
This commit is contained in:
Fred Kiefer 2001-06-06 18:07:32 +00:00
parent c2e7cf2f1c
commit efdd226051

View file

@ -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