mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
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:
parent
474a12b708
commit
c7eeb1bb08
7 changed files with 29 additions and 71 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue