I’m posting a new version of the ASObj-C Database a12. Apparently the older version did not properly display the version number in the aboutbox. This has now been fixed. To see the version of the ASObj-C Database go to the ASObj-C menu and choose “About ASObj-C…” from the menu. The database name and version are displayed at the top of the about box.
I uploaded ASObj-C Database a12.fmpur.zip to Dropbox. The download link is:
For anyone who doesn’t have copy of the app to run the file it is uploaded to dropbox. The download link is:
Version a12 also has some other new things.
I can remember being frustrated with NSNumbers in the beginning. Everybody told me they are a box to put things in, but never say what to do with the box. So I added 3 NSNumber properties and 5 NSNumber methods to the data base that actually accomplish something using NSNumbers. The samples for NSNumber show exactly what can be done with NSNumbers.
Changed the advanced sample for writeToFile:atomically:encoding:error: Previously it did no error checking. Now it does full error checking. This is a full error checking that properly handle errors in a meaningful way. Most of the time people just enter “missing value” for the “error” parameter. The new version shows the general process of handing errors with dialogs.
Since I used the NSError properties: domain, localizedDescription and code to handle error notification I added these properties to the database. I put the samples for NSError into the advanced Samples. This seemed like an advanced operation for beginners and perhaps those in the intermediate level. But if people want I can put in other levels as well.
The reason I used “localizedDescription” property instead of “userInfo” property to extract the NSError information was because a few time I used “userInfo” the information was displayed in a foreign language. “localizedDescription” is guaranteed to display in the correct language.
I don’t know if I ever mentioned it or not but the reason I make the modification date and creation date visible on the database is so users can tell what things were added recently and when things were initially added. I think this is useful information. But if it is a problem for some one, the only reason I can think is screen space, let me know.
Bill