mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 17:50:47 +00:00
* EOAccess/EOAttribute.h
* EOAccess/EOAttribute.m (_parent, -[setParent:]): Do not retain backward reference. (-[setName:): Mark as editited if parent is an entity. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dae87e4bec
commit
329eccc59c
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-09-07 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOAccess/EOAttribute.h
|
||||
* EOAccess/EOAttribute.m (_parent, -[setParent:]): Do not retain
|
||||
backward reference.
|
||||
(-[setName:): Mark as editited if parent is an entity.
|
||||
|
||||
2004-06-23 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOAccess/EOAccessFault.m: Include privat headers locally.
|
||||
|
|
|
@ -108,7 +108,7 @@ typedef enum {
|
|||
/* Garbage collectable objects */
|
||||
// EOEntity *_entity;
|
||||
// GCMutableArray *_definitionArray; // These variables are meaningful only
|
||||
id _parent;
|
||||
id _parent; /* unretained */
|
||||
EOAttribute *_prototype;
|
||||
EOExpressionArray *_definitionArray;
|
||||
EOAttribute *_realAttribute; // if the attribute is flattened //Not in EOF !
|
||||
|
|
|
@ -777,6 +777,11 @@ static Class NSCalendarDateClass;
|
|||
[[self validateName: name] raise];
|
||||
|
||||
ASSIGN(_name, name);
|
||||
if (_flags.isParentAnEOEntity)
|
||||
{
|
||||
[_parent _setIsEdited];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)setPrototype: (EOAttribute *)prototype
|
||||
|
@ -1473,7 +1478,7 @@ return nexexp
|
|||
{
|
||||
//OK
|
||||
[self willChange];
|
||||
ASSIGN(_parent, parent);//TODO assign ??
|
||||
_parent = parent;
|
||||
|
||||
_flags.isParentAnEOEntity = [_parent isKindOfClass: [EOEntity class]];//??
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue