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. Use @dynamic, +resolveInstanceMethod, and the class_addMethod() function to add a property implementation method at runtime. Manipulating the Objective-C runtime is not covered here, but you can find out about this in Apple’s Objective-C 2.0 Runtime Reference.

  2. Measure the performance of atomic and nonatomic properties in garbage collected and non-garbage collected environments. Are there real performance differences?

  3. The requirement that collections not mutate while you are iterating over them can be inconvenient at times, especially if you are doing a scan the collection and pull out stuff that shouldn’t be there operation. What would it take to make a classic array enumerator support having the collection mutated during iteration? ...

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