mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-06-02 02:01:31 +00:00
* EOControl/EOKeyValueCoding.h/m
(unableToSetNullForKey:): Remove deprecated -base/Foundation hook. (setNilValueForKey:) Override new hook to call unableToSetNilForKey:. (unableToSetNilForKey:): Raise exception as documented. (takeValue:forKey:): Implement here to avoid deprecation warning. (takeValue:forKeyPath:): Ditto. (takeValuesFromDictionary:): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
533820470c
commit
dc86d3148d
3 changed files with 116 additions and 16 deletions
|
@ -58,7 +58,9 @@
|
|||
- (id)valueForKey: (NSString *)key;
|
||||
|
||||
/**
|
||||
* Unimplemented here. Relies on NSKeyValueCoding.
|
||||
* Overrides the implementation of gnustep-base/Foundation this method
|
||||
* is currently deprecated in favor of setValue:forKey: yet we aim
|
||||
* to maintain WebObjects 4.5 compatibility.
|
||||
*/
|
||||
- (void)takeValue: (id)value forKey: (NSString *)key;
|
||||
|
||||
|
@ -103,10 +105,10 @@
|
|||
|
||||
/**
|
||||
* This method is invoked by the EOKeyValueCoding mechanism when an attempt
|
||||
* is made to set an null value for a scalar attribute. This implementation
|
||||
* raises an NSInvalidArgument exception. <br/>
|
||||
* is made to set an null value for a scalar attribute.
|
||||
* Contrary to the TOC of the documentation, this method is called
|
||||
* unableToSetNilForKey: and not unableToSetNullForKey:<br/>
|
||||
* This implementation raises an NSInvalidArgument exception. <br/>
|
||||
* The NSKeyValueCoding -setNilValueForKey: is overriden to invoke this
|
||||
* method instead. We manipulate the runtime to insure that our implementation
|
||||
* of unableToSetNilForKey: is used in favor of the one in gnustep-base or
|
||||
|
@ -124,7 +126,9 @@
|
|||
- (id)valueForKeyPath: (NSString *)keyPath;
|
||||
|
||||
/**
|
||||
* Unimplemented here. Relies on NSKeyValueCoding.
|
||||
* Overrides the implementation of gnustep-base/Foundation this method
|
||||
* is currently deprecated in favor of setValue:forKeyPath: yet we aim
|
||||
* to maintain WebObjects 4.5 compatibility.
|
||||
*/
|
||||
- (void)takeValue: (id)value forKeyPath: (NSString *)keyPath;
|
||||
|
||||
|
@ -134,7 +138,9 @@
|
|||
- (NSDictionary *)valuesForKeys: (NSArray *)keys;
|
||||
|
||||
/**
|
||||
* Unimplemented here. Relies on NSKeyValueCoding.
|
||||
* Overrides the implementation of gnustep-base/Foundation this method
|
||||
* is currently deprecated in favor of setValue:forKeyPath: yet we aim
|
||||
* to maintain WebObjects 4.5 compatibility.
|
||||
*/
|
||||
- (void)takeValuesFromDictionary: (NSDictionary *)dictionary;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue