mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6bf97cbac3
commit
2e9ca621e3
5 changed files with 45 additions and 6 deletions
|
@ -93,6 +93,22 @@
|
|||
return YES;
|
||||
}
|
||||
|
||||
- copyWithZone: (NSZone *)zone
|
||||
{
|
||||
if (NSShouldRetainWithZone(self, zone))
|
||||
return [self retain];
|
||||
else {
|
||||
return [[NSData allocWithZone:zone]
|
||||
initWithBytes:[self bytes] length:[self length]];
|
||||
}
|
||||
}
|
||||
|
||||
- mutableCopyWithZone: (NSZone *)zone
|
||||
{
|
||||
return [[NSMutableData allocWithZone:zone]
|
||||
initWithBytes:[self bytes] length:[self length]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
@ -141,4 +157,10 @@
|
|||
[self writeBytes:bytes length:length];
|
||||
}
|
||||
|
||||
- copyWithZone: (NSZone *)zone
|
||||
{
|
||||
return [[NSData allocWithZone:zone]
|
||||
initWithBytes:[self bytes] length:[self length]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue