EOTemporaryGlobalID

Inherits From:
EOGlobalID : NSObject

Conforms To: NSCoding
NSCopying (EOGlobalID)
NSObject (NSObject)

Declared in: EOControl/EOGlobalID.h

Class Description

An EOTemporaryGlobalID identifies a newly created object before it's saved to an external store. When the object is saved, the temporary ID is converted to a permanent one, as described in the EOGlobalID class specification.

NSCoding
- encodeWithCoder:
- initWithCoder:

Class Methods

assignGloballyUniqueBytes:

+ (void)assignGloballyUniqueBytes:(unsigned char *)buffer

Assigns a world-wide unique ID of the format:

< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >

buffer should have space for EOUniqueBinaryKeyLength (12) bytes.

Instance Methods

init

- (id)init

Initializes a newly allocated EOTemporaryGlobalID as a unique instance. The returned id contains a byte string obtained from assignGloballyUniqueBytes: that's guaranteed to be unique network-wide. As a result, EOTemporaryGlobalIDs can be safely passed between processes and machines while still preserving global uniqueness.

isTemporary

- (BOOL)isTemporary

Returns YES.

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