Converted to modern Objective-C syntax

Converted to modern Objective-C syntax.