I am pushing a class that has a bunch of properties that I want to use only internally. Meaning I do not want to have access to them when they created my class. Here is what I have in my .h, but it still doesn't hide those from the autocomplete menu (getting into the watch list) in Xcode:
@interface Lines : UIView { UIColor *lineColor; CGFloat lineWidth; @private NSMutableArray *data; NSMutableArray *computedData; CGRect originalFrame; UIBezierPath *linePath; float point; float xCount; } @property (nonatomic, retain) UIColor *lineColor; @property (nonatomic) CGFloat lineWidth; @property (nonatomic) CGRect originalFrame; @property (nonatomic, retain) UIBezierPath *linePath; @property (nonatomic) float point; @property (nonatomic) float xCount; @property (nonatomic, retain) NSMutableArray *data; @property (nonatomic, retain) NSMutableArray *computedData;
I thought using @private
was what I needed, but maybe I did it wrong. Do I need to do something in my .m?
private ios objective-c xcode
Nic Hubbard Oct 26 '11 at 22:05 2011-10-26 22:05
source share