* EOControl/EOObserver.h

(EODelayedObserver): Inherit from EOCustomObject
	to be able to rely on implicit breaking of connections
	during dealloc.
	* EOInterface/EOAssociation.m
	(establishConnection): Reactivate implicit connection handling.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30209 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2010-04-21 13:59:28 +00:00
parent a8f69ea595
commit 677af06a20
3 changed files with 22 additions and 17 deletions

View file

@ -1,18 +1,27 @@
2010-04-20 David Wetzel <dave@turbocat.de>
* EOAccess/EODatabaseContext.m:
start transaction in
objectsWithFetchSpecification: editingContext:
if none was in place before.
2010-04-21 David Ayers <ayers@fsfe.org>
* EOAccess/EOEntity.m:
globalIDForRow: isFinal: - create EOKeyGlobalID ouside loop
* EOControl/EOObserver.h
(EODelayedObserver): Inherit from EOCustomObject
to be able to rely on implicit breaking of connections
during dealloc.
* EOInterface/EOAssociation.m
(establishConnection): Reactivate implicit connection handling.
2010-04-20 David Wetzel <dave@turbocat.de>
* EOAccess/EODatabaseContext.m:
(-objectsWithFetchSpecification:editingContext:):
Start transaction if none was in place before.
* EOAccess/EOEntity.m: (-globalIDForRow:isFinal:)
Create EOKeyGlobalID outside loop.
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
* EOAccess/EOEntity.m: Use '||' instead of '|'.
* Tools/eoutil.m: Implement -lossyASCIIString.
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
2010-04-19 Fred Kiefer <FredKiefer@gmx.de>
* EOControl/EOMutableKnownKeyDictionary.h,
* EOControl/EOMutableKnownKeyDictionary.m,

View file

@ -28,11 +28,7 @@
#define __EOObserver_h__
#ifdef GNUSTEP
#include <Foundation/NSObject.h>
#else
#include <Foundation/Foundation.h>
#endif
#include <EOControl/EOCustomObject.h>
@class NSArray;
@ -88,7 +84,7 @@ typedef enum {
#define EOObserverNumberOfPriorities ((unsigned)EOObserverPriorityLater + 1)
@interface EODelayedObserver : NSObject <EOObserving>
@interface EODelayedObserver : EOCustomObject <EOObserving>
{
@public
EODelayedObserver *_next; /* Linked List. */

View file

@ -228,11 +228,11 @@ static NSMapTable *_objectToAssociations;
NSEndMapTableEnumeration (&displayGroupEnum);
/* registerAssociationForDeallocHack is implemented in
EOControl/EOEditingContext.m this causes +objectDeallocated:
EOControl/EOCustomObject.m this causes +objectDeallocated:
to be called when '_object' is deallocated, which will break the
connection which releases the association instance. */
[self retain];
// [self registerAssociationForDeallocHack:_object];
[self registerAssociationForDeallocHack:_object];
associations = (id)NSMapGet(_objectToAssociations, _object);