Hi,
please read the following code::
AddressCard *card1 = [[AddressCard alloc] init];
AddressCard *card2 = [[AddressCard alloc] init];
[card1 setName:[NSMutableString stringWithString:@"Deepak"] andEmail:[NSMutableString stringWithString:@"deepak@paymate"]];
NSMutableString * temp = [NSMutableString stringWithString:@"Deepak"];
r1 = [temp retainCount];
r2 = [card1.name retainCount];
//[card2 setName:card1.name];//retain count 2
//OR//
[card2 setName:temp];// retain count 1
r1 = [card2.name retainCount];
this is some think confusing because in both cases input type is string.
Thanks in advance. d