url = NSURL.fileURLWithPath(self.fileName).URLByAppendingPathComponent("test.storedata") setFileType('SQLite') add_persistent_store(url) puts crags # This is a method that fetches objects from the sqlite database, # and proves to me that the database has been set right. Output below: # #<RFCrag_RFCrag_:0x4013323c0> # #<RFCrag_RFCrag_:0x4013324c0> # #<RFCrag_RFCrag_:0x401332680> # #<RFCrag_RFCrag_:0x401334480> # #<RFCrag_RFCrag_:0x401334740> # #<RFCrag_RFCrag_:0x4013355c0> # #<RFCrag_RFCrag_:0x40132f980> # #<RFCrag_RFCrag_:0x40132fc80> puts self # => #<RFDocument:0x40161bfe0> # Correct I think, this is what I expect true end
puts self # => #<#<Class:0x40049db20>:0x4013e7680> # Incorrect? Or some funny cocoa-generated subclass maybe? end