Skip to content
This repository was archived by the owner on Apr 21, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (12 loc) · 298 Bytes

File metadata and controls

20 lines (12 loc) · 298 Bytes

mongo-objectid-objc

Generate unique MongoDB ObjectIDs in iOS.

Usage:

// Create a new unique id:
ObjectID _id = [MongoID id];
NSString *str = [MongoID stringWithId: _id];
NSLog(@"ID: %@", str);


// And get it back again:
ObjectId = [MongoID idWithString: str];