With class extensions you mainly can differentiate public and private methods of your class implementation.
Class extensions were designed to solve two problems. The first was to enable to compiler to better validate the private interfaces a class might have and the second was to solve a subtle, but gnarly, problem with properties (another feature added to Objective-C 2.0).
A property that is publicly readonly, but privately readwrite without opening properties up to all of the fun fragility associated with categories.
bbum's weblog-o-mat
Class extensions were designed to solve two problems. The first was to enable to compiler to better validate the private interfaces a class might have and the second was to solve a subtle, but gnarly, problem with properties (another feature added to Objective-C 2.0).
A property that is publicly readonly, but privately readwrite without opening properties up to all of the fun fragility associated with categories.
bbum's weblog-o-mat
Comments
Post a Comment