Documentation Archive Developer
PATH  WebObjects 4.5 Documentation > EOAccess Reference

Table of Contents


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];

Table of Contents