Tag: 2012

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture nineteen is named “19. Automated Testing (December 6, 2011) – HD” and can be found at iTunes.

The lecturer Andy Matuschak from the UIKit team at Apple uses a short demo to introduce unit tests and automation.

Unit tests are defined by creating subclasses of SenTestCase. The actual unit tests are methods starting with the prefix test, testing expectations using STAssert* and use the methods setUP and tearDown for shared initialization and clean up.

iOS UI Automation allows to run top down tests on the user interface using the automation tool of Instruments. Actions can be recorded and the app be manipulated via UIAElements in JavaScript, which can also be used to inspect states calling UIALogger logFail/Pass methods. Within a script accessibilityLabels can be used for easy access to interface elements.

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture seventeen is named “17. iCloud (November 29, 2011)” and can be found at iTunes. Its slides are available at Stanford.

This lecture together with the following one addresses the iCloud and how to use it for sharing documents among user’s devices. Using the iCloud is like using an URL of a shared directory with restrictions deriving from latency and shared access. It is setup in Xcode by enabling Entitlements.

The lecturer is Ge Wang, assistant professor at the center of computer research in music and acoustics at Stanford and co-founder of Smule. He starts by introducing how music is generated on music, e.g. ChucK an audo programming language for real-time synthesis, composition, performance and analysis; its usage in laptop orchestras, e.g. Slork and Plork; and emphasizes how it can be applied on the iPhone to create social music experience, e.g. Ocarina a digital flute, Sing! and Glee Karaoke karaoke machines allowing to sing with other people online, Magic Piano and Magic Guitar further digital instruments.