CS 185C/286 - Lecture 13

Cover page image

Cay S. Horstmann

Lecture 13 Quiz 1

When you write a file in Objective C, how do you get notified if there is an error?

  1. The writeToFile method returns YES if it succeeded, NO if it failed.
  2. The writeToFile method returns an integer error code.
  3. You pass a pointer to an NSError object that is filled with an error descriptor if an error occurred.
  4. An exception is thrown that you should catch.

Lecture 13 Quiz 2

What is true about Objective-C protocols?

  1. They are like generics in Java. For example, @protocol Fred <P1, P2> means that Fred has type parameters P1 and P2.
  2. They are like multiple inheritance in C++. For example, @protocol Fred <P1, P2> means that Fred inherits from P1 and P2.
  3. They are like interfaces in Java. For example, @protocol Fred <P1, P2> means that Fred implements P1 and P2.
  4. None of the above

Today's Lecture/Lab

Table Views

Table Views

Table Styles

Reading Before Next Class

Lab

Simple Tables