O'Reilly logo

Advanced Mac OS X Programming: The Big Nerd Ranch Guide by Mark Dalrymple

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

Exercises

  1. Add the ability for the user to click and drag out a region of the Mandelbrot set to zoom in on.

  2. Existing images do not move if you resize the ImageSnarfer window. They either get clipped or the window gets a large expanse of white space, which looks strange. Make the window resize prettier, according your own definition of pretty.

  3. The SnarfOperations stop loading when the window is resized or when a menu is being displayed. Why? (Hint: run loops.) Make the images continue loading even when the window is being resized.

  4. NSOperationQueue can create new threads for non-concurrent operations if one of the currently running operations enters the kernel. You can work around this by explicitly calling -setMaxConcurrentOperationCount: on ...

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