mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Make blocks conform to NSCopying.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32377 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fc0c897900
commit
b718e8bdd4
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ void _Block_release(void *);
|
||||||
class_addMethod(blockClass, method_getName(*m),
|
class_addMethod(blockClass, method_getName(*m),
|
||||||
method_getImplementation(*m), method_getTypeEncoding(*m));
|
method_getImplementation(*m), method_getTypeEncoding(*m));
|
||||||
}
|
}
|
||||||
|
Protocol *nscopying = objc_getProtocol("NSCopying");
|
||||||
|
class_addProtocol(blockClass, nscopying);
|
||||||
}
|
}
|
||||||
- (id)copyWithZone: (NSZone*)aZone
|
- (id)copyWithZone: (NSZone*)aZone
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue