Add removeObserver:fromObjectsAtIndexes:forKeyPath:context: method

This commit is contained in:
Gregory John Casamento 2023-10-01 01:08:41 -04:00
parent 24653e63c3
commit edc15778d2
2 changed files with 19 additions and 0 deletions

View file

@ -142,6 +142,11 @@ GS_EXPORT NSString *const NSKeyValueChangeNotificationIsPriorKey;
- (void) removeObserver: (NSObject*)anObserver
forKeyPath: (NSString*)aPath
context: (void *)context;
- (void) removeObserver: (NSObject*)anObserver
fromObjectsAtIndexes: (NSIndexSet *)indexes
forKeyPath: (NSString*)aPath
context: (void *)context;
#endif
@end

View file

@ -1325,6 +1325,13 @@ cifframe_callback(ffi_cif *cif, void *retp, void **args, void *user)
[iLock unlock];
}
- (void) removeObserver: (NSObject*)anObserver
fromObjectsAtIndexes: (NSIndexSet *)indexes
forKeyPath: (NSString*)aPath
context: (void *)context
{
}
@end
@implementation NSKeyValueObservationForwarder
@ -1624,6 +1631,13 @@ cifframe_callback(ffi_cif *cif, void *retp, void **args, void *user)
[kvoLock unlock];
}
- (void) removeObserver: (NSObject*)anObserver
fromObjectsAtIndexes: (NSIndexSet *)indexes
forKeyPath: (NSString*)aPath
context: (void *)context
{
}
@end
/**