         super.init(url: url)
     }
     
+    func registerObject() -> UID {
+        var pos = self.register()
+        return self.calculateID(pos)
+    }
+    
     func createObject() -> O {
         
-        var result: O = O()
+        var result = O()
         
         self.addObject(result)
         


import Foundation

// TODO 
// HEADER = H
// OBJECT = O

class ObjectStore<O: ObjectCoding, H> : DataStore<O,H> {
    
    //var objectType : Class!
    

    func deleteObject(aObj: O) {
        
        if aObj.uid {
            self.deleteData(aObj.uid!)
            aObj.uid = nil;
        }
    }
