O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Notifications

In iPhone programming, there are four common patterns for objects to communicate. Here they are, each with a short summary:
Target-Action:Specify a single object and a single method to call on that object when a single event happens. You have seen this used by buttons and other controls.
Delegation: Specify a single object which responds to numerous methods to modify or add behavior. You have seen this used by table views, text editing, the location manager, and many others.
Notification: Register to be one of many objects notified when an event happens.
Key-Value Observing(KVO): Register to be one of many objects notified when a single property of another object changes.
ONE MORE THING
KVO will not be covered in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required