* EOControl/EOClassDescription.m ([EOClassDescription +initialize]):

initialize (if present) the default model group. This helps
+classDescriptionFor* to work correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@16163 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2003-03-12 21:35:20 +00:00
parent 04b282d802
commit 91ccffa864
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-03-12 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* EOControl/EOClassDescription.m ([EOClassDescription +initialize]):
initialize (if present) the default model group. This helps
+classDescriptionFor* to work correctly.
2003-03-06 David Ayers <d.ayers@inode.at>
* config/postgres.m4: Updated CPPFLAGS and LIBS to account for

View file

@ -82,6 +82,14 @@ static id classDelegate = nil;
classDescriptionForEntity = NSCreateMapTable(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks,
32);
if (self == [EOClassDescription class])
{
Class cls = NSClassFromString(@"EOModelGroup");
if (cls != Nil)
[cls defaultGroup]; // Insure correct initialization.
}
}