Inherits From:
NSObject
Conforms To:
NSCopying
NSObject (NSObject)
Declared in: EOControl/EOGlobalID.h
Temporary Identifiers
EOEditingContexts and other object stores support the insertion of new objects without established IDs, creating temporary IDs that get replaced with permanent ones as soon as the new objects are saved to their persistent stores. The temporary IDs are instances of the EOTemporaryGlobalID class.
When an EOObjectStore saves these newly inserted objects, it must replace the temporary IDs with persistent ones. When it does this, it must post an EOGlobalIDChangedNotification announcing the change so that observers can update their accounts of which objects are identified by which global IDs. The notification's userInfo dictionary contains a mapping from the temporary IDs (the keys) to their permanent replacements (the values).
- (unsigned int)hash
Returns an integer that can be used as a table address in a hash table structure. If two objects are equal (as determined by isEqual: ), they must have the same hash value. For more information, see the descriptions of this method in the NSObject class and protocol specifications of the Foundation Framework.
- (BOOL)isEqual: (id)anObject
Returns YES if the receiver and anObject share the same identifying values, NO if they don't. For more information, see the descriptions of this method in the NSObject class and protocol specifications of the Foundation Framework.
isTemporary
- (BOOL)isTemporary
Returns NO. See the class description for more information.
Posted whenever EOTemporaryGlobalIDs are replaced by permanent EOGlobalIDs. The notification contains:
Notification Object nil Userinfo A mapping from the temporary IDs (keys) to permanent IDs (values) Copyright © 1997, Apple Computer, Inc. All rights reserved.