mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Implement NSCopying
This commit is contained in:
parent
2478bf78b6
commit
515b36475e
1 changed files with 3 additions and 1 deletions
|
@ -498,7 +498,9 @@
|
|||
|
||||
- (id) copyWithZone: (NSZone*)zone
|
||||
{
|
||||
return [self retain];
|
||||
NSData *data = [NSArchiver archiveDataWithRootObject: self];
|
||||
id result = [NSUnarchiver unarchiveObjectWithData: data];
|
||||
return result;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue