EOObjectStoreCoordinator Additions

Inherits From:
EOObjectStoreCoordinator : NSObject

Declared in: EOAccess/EOModelGroup.h

Class Description

The EOAccess framework adds methods to the EOObjectStoreCoordinator class for accessing the coordinator's EOModelGroup: modelGroup and setModelGroup: . (EOObjectStoreCoordinator is in the EOControl framework.)

An application can have multiple EOObjectStoreCoordinators, and each coordinator can have a different EOModelGroup. For more discussion of this subject, see the chapter "Application Configurations" in the Enterprise Objects Framework Developer's Guide. Application and framework code needing access to the EOModelGroup for a given EOEditingContext can get that information by asking the EOEditingContext's EOObjectStoreCoordinator for its EOModelGroup.

Instance Methods

modelGroup

- (EOModelGroup *)modelGroup

Returns the receiver's EOModelGroup. By default, this method returns the results of the statement [EOModelGroup defaultGroup]. If your application is using more than one EOObjectStoreCoordinator, each coordinator can have its own EOModelGroup.

setModelGroup:

- (void)setModelGroup:(EOModelGroup *)group

Sets to group the EOModelGroup used by the receiver. By default, an EOObjectStore's EOModelGroup is the result of the statement [EOModelGroup defaultGroup]. However, you can override this by using setModelGroup: to explicitly set a different EOModelGroup for the receiver. Other parts of Enterprise Objects Framework (such as EODatabaseContext) use the EOModelGroup bound to their EOObjectStoreCoordinator.

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