13-SearchAndNotifications

13-SearchAndNotifications - CS193P - Lecture 13 iPhone...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
CS193P - Lecture 13 iPhone Application Development Debugging Tips Searching Notifications KVC/KVO
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements This Friday: Jessica Kahn, Tapulous Presence 3 was due last night at midnight Ask if you’re not sure how many late days you’ve used Presence 4 is out today, due Tuesday 5/19
Background image of page 2
The Next Few Weeks Work on your final projects! Due on Sunday 6/7 at 11:59PM Upcoming lectures Multitouch Device APIs: Accelerometer, Location Audio/Video/Web Views More. ..
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Today’s Topics Exceptions Searching Notifications Presence 4
Background image of page 4
Exceptions
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Exceptions in Objective-C Not used for control flow as in some other languages Intended for truly “exceptional” conditions Programmer errors An uncaught exception will crash a running program
Background image of page 6
Examples of raised exceptions Accessing outside the bounds of an array Calling undefined methods on an object Setting/Getting undefined key for an object
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Debugging Exceptions If your program crashes suddenly, look in the Xcode console
Background image of page 8
Debugging Exceptions Console output will often help you find the source If not immediately identifiable, though, the crash point shown by default for an unhandled exception isn’t of much use Add a breakpoint on objc_exception_throw to capture it
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Demo: Debugging Unhandled Exceptions
Background image of page 10
Searching
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Searching in Your App Allow the user to sift through a large quantity of data Local or remote Consider performance, responsiveness For large amounts of local data, pairs nicely with SQLite
Background image of page 12
UISearchBar Interface element for entering a search query Used at the
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/29/2009 for the course CS 193D taught by Professor Staff during the Spring '08 term at Stanford.

Page1 / 42

13-SearchAndNotifications - CS193P - Lecture 13 iPhone...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online