| Home | My Blog | Code / GitHub | My resumé (PDF) |
Here are a few pieces of source code I think are worth sharing. Enjoy!
Unless otherwise noted on a per-section basis, all code on this page is hereby placed in the public domain for free use.
MAKVONotificationCenter
License: Free use, attribution required. Original code by Michael Ash, additions by Jerry Krinock and Gwynne Raskind.
This is Michael Ash's class for improving KVO,
as modified by Jerry Krinock,
and further modified by myself to support blocks under 10.6 and run some unit tests on the functionality. The class supports both GC and
retain/release memory management, and compiles with GCC, LLVM-GCC, and Clang. The Xcode project includes a target for building a DocSet
using Doxygen and a PDF using TeTeX, both of which can be installed via MacPorts (but be prepared for a huge list of dependencies, and make
sure you use the +no_x11 and +quartz variants unless you feel like watching port build most of X11).
This code has not been tested on anything other than Snow Leopard 10.6.2 using Xcode 3.2.1. Use it on anything older at your own risk! Leopard is an absolute requirement (due to the use of GC primitives, fast enumeration, and properties), and PPC is not supported.