Monday, October 25, 2010

25 October 2010 - NSOperation & Touch

Tasks for the day:
- Watch lecture 14 on Multi-Touch
- Rework assignment 4 part 3 with the use of non-blocking technique
- Work on Multi-Touch Application

Watched the lecture on multi-touch this morning and tried out the demo applications. When we came back for lunch, Kevin took a look at our assignment 4 part 3. For that assignment, out interface was blocked whenever we retrieved data from Flickr. Hence, Kevin gave us a lecture on NSOperations (aka threading).

Kevin also told us about the hierarchy of data retrieval from the fastest to the slowest:
1. Memory
2. Disk
3. Local Network
4. Internet

We learnt that whenever we perform costly operations, it would always be good to make use of threading. This prevents blocking of codes and users would then have a better experience with the application. Else, if the application is being blocked due to the long code execution, the application would be unresponsive. The next thing on the user's mind would be to exit the application.

We managed to rework the application to remove blocking, and the whole process has become much more ideal. Here are some references used during the reworking of the application:


Now, we're given 2 multi-touch assignments to work on. We would be working on the second one first, which seems to be more difficult.

Got this useful link on the net to deal with irregular-shaped buttons. Gonna try it out tomorrow. Have to go back home and create the images.

No comments:

Post a Comment