Persistence Solution Using Archiving

Report any errors in the Chapter 11 text or code.

Persistence Solution Using Archiving

Postby dan » Sat Nov 29, 2008 11:14 pm

The archiving persistence solution as coded and discussed on pages 345 - 350 generates an error message in the console when:

1. the solution is newly built and installed in the iPhone Simulator for the first time
2. and any text field is given focus when it is "touched" to give it focus for input

The error message is:

error compiling query "SELECT value FROM _SqliteDatabaseProperties WHERE key = ?;": no such table: _SqliteDatabaseProperties

Why is this error message generated when no SQL query has been used and we are using archiving?

This error message occurs whether I build and run the solution coded from the book or from the downloaded solution from your web site.

In addition the code in the downloaded solution in the folder "11 Persistence Archiving" contains a remnant piece of code in the file PersistenceViewController.m in the dataFilePath method below the return statement. The fragment is:

NSString *path =
dan
 
Posts: 10
Joined: Fri Nov 28, 2008 9:29 pm

Re: Persistence Solution Using Archiving

Postby jeff_lamarche » Sun Dec 07, 2008 9:00 am

Dan:

I've seen this message before, as well and I honestly have no idea what's causing it. I've even seen this message in applications that don't even use SQLite, so my only guess is that somewhere under the hood, Xcode, Cocoa Touch, or the iPhone Simulator are using SQLite and are generating this message. So far, it seems to have no effect on the running of my programs other than printing the error in the log.

Jeff
jeff_lamarche
 
Posts: 92
Joined: Thu Nov 13, 2008 9:42 pm


Return to Chapter 11 - Basic Data Persistence...

Who is online

Users browsing this forum: No registered users and 1 guest