mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
NSKVOSupport: Conditionally exclude deprecated KVO API
This commit is contained in:
parent
2060863762
commit
66b3ca6625
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
|||
#import <stdatomic.h>
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <GNUstepBase/GSConfig.h>
|
||||
|
||||
typedef void (^DispatchChangeBlock)(_NSKVOKeyObserver *);
|
||||
|
||||
|
@ -723,6 +724,7 @@ static void *s_kvoObservationInfoAssociationKey; // has no value; pointer used
|
|||
return [self performSelector:sel];
|
||||
}
|
||||
|
||||
#if GS_LEGACY
|
||||
// We compute an NSSet from information provided by previous invocations
|
||||
// of the now-deprecated setKeys:triggerChangeNotificationsForDependentKey:
|
||||
// if the original imp returns an empty set.
|
||||
|
@ -737,6 +739,8 @@ static void *s_kvoObservationInfoAssociationKey; // has no value; pointer used
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return emptySet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue