mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:47:39 +00:00
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:
parent
c2e7cf2f1c
commit
efdd226051
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue