Monday, October 18, 2010

18 October 2010

Went through lecture 9 today. This lecture covered things related to data in the iPhone. After watching the lecture, Zac and I proceeded on to work on Assignment 4 Part 2, where we have to apply the concepts of reading and writing data - persisting data.

First we worked with Property Lists (plist). We spent close to 2 hours and finally got to understand how to make use of plists and the concept behind it. At first, we're trying very hard to get plists integrated into the assignment. However, Kevin redirected us such that we worked just on a simple application to get an idea of how plist works. In less than 30minutes after heeding Kevin's advice, we managed to move on to the next part, Core Data.

Once again, we had a lot of trouble trying to read and write data into Core Data. Core Data is a database system, just like what we have been using, Microsoft SQL. When it comes to coding, it is always good to look for sample codes that can be downloaded via the Apple Documentation. Learning programming through looking at sample codes is definitely very effective. Kevin once again reminded us that we are taking the wrong approach. He told us about the general approach to solve problems, and it all really makes sense.

We're finally able to read from and write data to Core Data. However, there's still this problem that I've been pondering for quite a while - How do we mainain the relationships between entities? Kevin said he'll talk to us about that tomorrow. Looking forward to what he has got to tell us (:

No comments:

Post a Comment