mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Throw an exception when calling the removeObserver:forKeyPath:context: method
This commit is contained in:
parent
5507ea1d1e
commit
b8bc924cdb
1 changed files with 3 additions and 1 deletions
|
@ -1566,7 +1566,9 @@ cifframe_callback(ffi_cif *cif, void *retp, void **args, void *user)
|
|||
forKeyPath: (NSString*)aPath
|
||||
context: (void*)context
|
||||
{
|
||||
[self removeObserver: anObserver forKeyPath: aPath];
|
||||
[NSException raise: NSGenericException
|
||||
format: @"[%@-%@]: This class is not observable",
|
||||
NSStringFromClass([self class]), NSStringFromSelector(_cmd)];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue