mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +00:00
* 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:
parent
86b1325708
commit
da6a07ec81
5 changed files with 20 additions and 3 deletions
10
ChangeLog
10
ChangeLog
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -109,6 +109,11 @@ initialize(void)
|
|||
[self unableToSetNullForKey: key];
|
||||
}
|
||||
|
||||
- (void) setNilValueForKey: (NSString *)key
|
||||
{
|
||||
[self unableToSetNullForKey: key];
|
||||
}
|
||||
|
||||
/* See EODeprecated.h. */
|
||||
+ (void) flushClassKeyBindings
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue