I am a bit confused by the underscore naming and the self. Is the following code OK?
@interface MyClass()
@property (nonatomic,retain) NSString *name;
@property (nonatomic,retain) NSString *surname;
@end
@implementation MyClass
@synthesize name = _name;
@synthesize surname = _surname;
Then when I need to assign a value I do this
self.name = [someParam retain];