added a "+" in detailController, and display it only when the detailController is pushed by SearchController (when pushed by myBookController, "+" is unavailable)
added property "bookId" to Book, and made some minor changes corresponding to it in DataConverter
correct a spelling mistake, discription---description
added NSManagedObject "Book" in core data model
created NSArrayTransformer to save property "authors" as "Transformable", and register the Class in AppDelegate.m in order to use it
updated BookDetailViewController.m to store book to core data. Next step is to display book from core data in MyBookTableViewController instead
in order for app to run correctly, comment out the code in - (void)createBooks of BookStore
decide to store actual image instead of imageHref, so change the property type in core data model, and make corresponding changes in BookDetailsController
solved saving books to core data and display on MyBookController
added another way to disable the add button
chencked before saving newBook to core data, and created bookStore to fetch books from core data, and updated code to use it in MyBookController and BookDetailController
when display detailController from MyBookController, you pass a NSManagedObject instance; as for SearchController, you pass a Book instance. In order to solve the problem, added a BOOL property to differentiate the two possible situations.
solved store property "authors" as a transformable type to core data, previous the saving results is nil, due to return [result dataUsingEncoding:[NSString defaultCStringEncoding]], using the following [NSString defaultCStringEncoding] as in the "Pro Core Data" will return nil. So change [NSString defaultCStringEncoding] to 'NSUTF8StringEncoding', and boom, the problem solved, the authors' names can now be displayed in MyBookTableViewController
No real changes this time, only to complete last time's commit message ---------last time also performed an alert View when the book already exists in local library(by comparing both book name and book authors of local library and searched results, the alert will only show if the two standards are both satisfied)