@property objective-c sintax

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 18:51 UTC
Read the original article Hit count: 172

Filed under:
|

I'm looking for the sintax 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

Related posts about objective-c

Related posts about properties