iphone Programming Glossary: myproperty
objective-c ARC readonly properties and private setter implementation http://stackoverflow.com/questions/8566671/objective-c-arc-readonly-properties-and-private-setter-implementation the class I could do Public declaration @interface SomeClass NSObject @property nonatomic retain readonly NSString myProperty @end private interface declaration @interface SomeClass void setMyProperty NSString newValue @end @implementation SomeClass.. SomeClass void setMyProperty NSString newValue @end @implementation SomeClass void setMyProperty NSString newValue if myProperty newValue myProperty release myProperty newValue retain void doSomethingPrivate self setMyProperty @ some value that only.. NSString newValue @end @implementation SomeClass void setMyProperty NSString newValue if myProperty newValue myProperty release myProperty newValue retain void doSomethingPrivate self setMyProperty @ some value that only this class can set..
|