* EOControl/EOObjectStoreCoordinator.m ([EOObjectStoreCoordinator

+initialize]): Insure EODatabaseContext is setup to receive
        notifications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@16676 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2003-05-08 13:06:34 +00:00
parent 7555ed8e51
commit eeb7efe15f
2 changed files with 16 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2003-08-05 David Ayers <d.ayers@inode.at>
* EOControl/EOObjectStoreCoordinator.m ([EOObjectStoreCoordinator
+initialize]): Insure EODatabaseContext is setup to receive
notifications.
* EOControl/EOKeyGlobalID.m ([EOKeyGlobalID
+globalIDWithEntityName:keys:keyCount:zone:]): Use AUTORELEASE
instead of autorelease.

View file

@ -61,6 +61,17 @@ NSString *EOCooperatingObjectStoreWasRemoved = @"EOCooperatingObjectStoreWasRemo
NSString *EOCooperatingObjectStoreNeeded = @"EOCooperatingObjectStoreNeeded";
+ (void) initialize
{
if (self == [EOObjectStoreCoordinator class])
{
Class cls = NSClassFromString(@"EODatabaseContext");
if (cls != Nil)
[cls class]; // Insure correct initialization.
}
}
- init
{
self = [super init];
@ -359,10 +370,10 @@ NSString *EOCooperatingObjectStoreNeeded = @"EOCooperatingObjectStoreNeeded";
}
count = [_stores count];
for (i = 0; i < count; i++)
{
// Contructs a list of EODatabaseOperations for all changes in the EditingContext
// Contructs a list of EODatabaseOperations
// for all changes in the EditingContext
objectStore = [_stores objectAtIndex: i];
[objectStore recordChangesInEditingContext];
}