@property objective-c syntax
Posted
by okami
on Stack Overflow
See other posts from Stack Overflow
or by okami
Published on 2010-05-24T18:42:50Z
Indexed on
2010/05/24
19:01 UTC
Read the original article
Hit count: 211
objective-c
|properties
I'm looking for the syntax of the getter/setter. Which is the setter and which is the getter??
Is the readwrite attribute the getter?
Is the assign the setter?
@interface SomeClass : NSObject { NSString *str; NSDate *date; } @property (readwrite, assign) NSString *str; @property (readwrite, assign) NSDate *date;
© Stack Overflow or respective owner