Convert to ARC and modern Objective-C syntax. Now requires OS X 10.6.