Add removeObserver:forKeyPath:context: to implementation

This commit is contained in:
Gregory John Casamento 2023-09-13 12:49:01 -04:00
parent dbebf7625d
commit 2c81d3e003
2 changed files with 10 additions and 0 deletions

View file

@ -138,6 +138,10 @@ GS_EXPORT NSString *const NSKeyValueChangeNotificationIsPriorKey;
- (void) removeObserver: (NSObject*)anObserver
forKeyPath: (NSString*)aPath;
- (void) removeObserver: (NSObject*)anObserver
forKeyPath: (NSString*)aPath
context: (void*)context;
@end
@interface NSArray (NSKeyValueObserverRegistration)

View file

@ -1561,6 +1561,12 @@ cifframe_callback(ffi_cif *cif, void *retp, void **args, void *user)
[forwarder finalize];
}
- (void) removeObserver: (NSObject*)anObserver forKeyPath: (NSString*)aPath context: (void*)context
{
[self removeObserver: anObserver forKeyPath: aPath];
}
@end
/**