Skip navigation.
 
mlRe: KVO and accessors - are they needed
FROM : Scott Stevenson
DATE : Sat Oct 23 23:45:38 2004

On Oct 23, 2004, at 6:54 AM, Steven Kramer wrote:

> Agreed, but even then KVC will have to do some runtime mangling
> (looking up argument types for type coercion). So it never becomes a
> truly trivial operation, right? I'm asking because I have a situation
> with quite some classes that are mostly data containers. Adding
> getters/setters increased the class and code size considerably and
> speed is not such an issue here.


If that's the case, why not just use a dictionary for the main data?


> Half on-topic: I have an easily customized yet slightly powerful perl
> script for Xcode to do accessors/init/dealloc/coding implementations.
> Much better than the Apple supplied shell script. If anyone's reading
> this and interested, let me know.


Not to discredit what you've done, but Kevin Callahan's Accessorizer is
very good for this:

http://www.kevincallahan.org/software/accessorizer.html


    - Scott

Related mailsAuthorDate
mlKVO and accessors - are they needed Bruce Truax Oct 20, 04:23
mlRe: KVO and accessors - are they needed John C. Randolph Oct 20, 04:36
mlRe: KVO and accessors - are they needed Scott Stevenson Oct 20, 05:26
mlRe: KVO and accessors - are they needed Steven Kramer Oct 22, 18:21
mlRe: KVO and accessors - are they needed John C. Randolph Oct 22, 21:52
mlRe: KVO and accessors - are they needed Steven Kramer Oct 23, 15:54
mlRe: KVO and accessors - are they needed Scott Stevenson Oct 23, 23:45