Game Development Reference
In-Depth Information
// Tell the cursor to fetch the next result
cursor.continue();
};
This is pretty much the same routine as fetching data. The only detail is that we ab-
solutely need to supply an object's key. The key is the value stored in the object's
keyPath attribute, which can be user-provided, or auto-generated. Fortunately for
us, the cursor object returns at least two references to this key through the curs-
or.primaryKey property, as well as through the object's own property that refer-
ences that value (in our case, we chose the keyPath attribute to be named myKey ).
Search WWH ::




Custom Search