Use GSObjCRuntime functions for selector types until/unless we can get

a standard runtime API that handles them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32240 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-20 07:58:11 +00:00
parent 474a12b708
commit c7eeb1bb08
7 changed files with 29 additions and 71 deletions

View file

@ -811,13 +811,8 @@ static NSDistributedNotificationCenter *netCenter = nil;
notification = [NSNotification notificationWithName: name
object: object
userInfo: userInfo];
#ifdef __GNU_LIBOBJC__
[recipient performSelector: sel_registerTypedName([aSelector cString], 0)
[recipient performSelector: GSSelectorFromNameAndTypes([aSelector cString], 0)
withObject: notification];
#else
[recipient performSelector: sel_registerTypedName_np([aSelector cString], 0)
withObject: notification];
#endif
}
@end