Documentation Archive Developer
Search
PATH  WebObjects 4.0 Documentation > EOAccess Reference



Setting Up A Model Group Programmatically

In the majority of applications, the automatic creation of the default model group is sufficient. However, if your particular application requires different model grouping semantics, you can create your own EOModelGroup instance, add the appropriate models, and then use that instance to replace the default EOModelGroup. The following code demonstrates the process:

NSString *modelPath;                      // Assume this exists
EOModelGroup *group = [EOModelGroup new];

[group addModelWithFile:modelPath];

[EOModelGroup setDefaultGroup:group];
[group release];





Copyright © 1998, Apple Computer, Inc. All rights reserved.