O'Reilly logo

MacRuby in Action by Brendan G. Lim with Jerry Cheung and Jeremy McAnally

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

Chapter 4. Using the delegate pattern

 

This chapter covers
  • How delegates work
  • Creating your own delegate methods
  • Mastering WebView delegates

 

If you’ve done any Cocoa development, chances are you’ve already used the delegate pattern. If you haven’t, this chapter will explain the important role delegation plays in MacRuby Cocoa application development. Delegation is a common design pattern for object-oriented programming languages. The Cocoa framework makes heavy use of delegation, which makes it a vital concept to understand if you plan to write MacRuby Cocoa applications.

In this chapter, you’ll get a good understanding of delegates, including how to use them, how to create your own, and how to use them in your applications. You’ll even ...

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