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:
theraven 2011-02-26 13:40:06 +00:00
parent fc0c897900
commit b718e8bdd4

View file

@ -27,6 +27,8 @@ void _Block_release(void *);
class_addMethod(blockClass, method_getName(*m),
method_getImplementation(*m), method_getTypeEncoding(*m));
}
Protocol *nscopying = objc_getProtocol("NSCopying");
class_addProtocol(blockClass, nscopying);
}
- (id)copyWithZone: (NSZone*)aZone
{