- Declared in:
- ETUUID.h
- Conforms to:
- NSCopying
@group UUID
An implementation of the Universally Unique Identifier standard.
When an ETUUID is instantiated, the underlying UUID is
generated with the version 4 (aka random)
generation scheme.
Take note the random
scheme used on Linux and BSD platforms is based on a
strong random number, unlike other platforms where a
simpler random scheme is used. Which means
collisions can occur on these platforms if you
try to generate ETUUID in a tight loop.
You can use -isEqual: to check the equality between two ETUUID instances.
ETUUID does not have a designated initializer.
@taskunit Initialization
Returns a new autoreleased UUID object initialized with a random 128-bit binary value.
Returns an autoreleased UUID object for the given 16-byte NSData.
Returns an autoreleased UUID object for the given UUID string representation.
Returns a 128-bit binary value representation of the receiver.
Initializes the UUID object from a string representation.
Initializes the UUID object with a 128-bit binary value.
@taskunit Alternative Representations
Returns a string representation of the receiver.
- Declared in:
- ETUUID.h
@group UUID
UUID related additions to NSString.
Returns an autoreleased UUID string representation (see ETUUID).
- Declared in:
- ETUUID.h
@group UUID
Conveniency methods to easily read and write UUIDs in the default database.
Returns an autoreleased UUID object if the value
for aKey is an UUID string representation,
otherwise returns nil
. Also
returns nil
if aKey
doesn't exist.
Sets the value as the string representation of aUUID for aKey.