small medium large xlarge

Generic-user-small
09 Jun 2009, 19:37
David Hart (2 posts)

When I wrote my solution to the exercise, I followed what was done previously in the Delegates chapter: I created a delegate class to catch windowShouldZoom:toFrame:. And it works! I was surprised to find out that the solution in the book does not create a delegate, it simply overrides the method in the MainWindowController class. Why is that? Why does it work? What’s the point of delegates then? I’m quite confused.

Thanks in advance, David Hart.

You must be logged in to comment