Class properties vs NSArray / NSDictionary
Posted
by Frank Martin
on Stack Overflow
See other posts from Stack Overflow
or by Frank Martin
Published on 2010-04-30T10:33:17Z
Indexed on
2010/04/30
10:37 UTC
Read the original article
Hit count: 182
I want a custom class object to hold data and have somehow the feeling that creating about 80 properties is not the best way of doing it.
Most of the properties would be bool values, so i'm thinking about creating Arrays (keys / values) or (probably better) a NSDictionary attached to the object for holding the data. Does that make sense or should i stay with the properties?
Extra: Are there general pros and cons for the different approaches? And what keywords / concepts do i have to search for to find discussions about that somehow general question?
Thanks in advance
© Stack Overflow or respective owner