Implement NSCopying

This commit is contained in:
Gregory John Casamento 2023-03-29 13:44:19 -04:00
parent 2478bf78b6
commit 515b36475e

View file

@ -498,7 +498,9 @@
- (id) copyWithZone: (NSZone*)zone
{
return [self retain];
NSData *data = [NSArchiver archiveDataWithRootObject: self];
id result = [NSUnarchiver unarchiveObjectWithData: data];
return result;
}
@end