The fastest and safest way is to add @synthesize valueto the top of your implementation, and the compiler will automatically generate these methods.
, NSMutableString, . "" (, , , ), copy. ( , ?), , , - , , , , , .
NSMutable copy, , . (NSString ..) copy retain. .
value, . :
-(void)setValue:(NSString*)newvalue
{
if (value != newvalue)
{
[value release];
value = [newvalue copy];
}
}
, setValue: , NSMutableString, retain, copy.