* EOControl/EOKeyValueCoding.h/m: (-setNilValueForKey:):

Override NSObject's category to invoke
        -unableToSetNullForKey:.

        * EOControl/EOSortOrdering.m: Include EONull.h instead of
        NSNull.h.

        * EOAccess/EODatabaseChannel.m: Update formatting,


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20830 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-03-02 14:10:36 +00:00
parent 86b1325708
commit da6a07ec81
5 changed files with 20 additions and 3 deletions

View file

@ -1,3 +1,13 @@
2005-03-02 David Ayers <d.ayers@inode.at>
* EOControl/EOKeyValueCoding.h/m: (-setNilValueForKey:):
Override NSObject's category to invoke -unableToSetNullForKey:.
* EOControl/EOSortOrdering.m: Include EONull.h instead of
NSNull.h.
* EOAccess/EODatabaseChannel.m: Update formatting,
2005-02-22 David Ayers <d.ayers@inode.at>
* EOAccess/EOAdaptor.m (-hasOpenChannels): Make safe for

View file

@ -425,7 +425,8 @@ RCS_ID("$Id$")
EOFLOGObjectLevelArgs(@"gsdb", @"object=%@", object);
NSAssert1(object, @"No Object. entityClassDescripton=%@", entityClassDescripton);
EOEditingContext_recordObjectGlobalIDWithImpPtr(_currentEditingContext,NULL,object,gid);
EOEditingContext_recordObjectGlobalIDWithImpPtr(_currentEditingContext,
NULL,object,gid);
}
else if (object && [EOFault isFault: object])
{

View file

@ -105,7 +105,8 @@
* 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/>
* The NSKeyValueCoding -unableToSetNilForKey: is overriden to invoke this
* The NSKeyValueCoding -unableToSetNilForKey: and -setNilValueForKey:
* are 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
* Foundation.

View file

@ -109,6 +109,11 @@ initialize(void)
[self unableToSetNullForKey: key];
}
- (void) setNilValueForKey: (NSString *)key
{
[self unableToSetNullForKey: key];
}
/* See EODeprecated.h. */
+ (void) flushClassKeyBindings
{

View file

@ -39,7 +39,6 @@ RCS_ID("$Id$")
#include <Foundation/NSCoder.h>
#include <Foundation/NSException.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSNull.h>
#else
#include <Foundation/Foundation.h>
#endif
@ -51,6 +50,7 @@ RCS_ID("$Id$")
#include <EOControl/EOSortOrdering.h>
#include <EOControl/EOKeyValueCoding.h>
#include <EOControl/EOKeyValueArchiver.h>
#include <EOControl/EONull.h>
#include <EOControl/EODebug.h>
#include "EOPrivate.h"