Chapter 4. Using the delegate pattern
- 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 ...
Get MacRuby in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.