after declaring a variable within the interface
ex.
@interface MyClass: NSObject
{
NSString *value;
}
@end
using a synthesize keyword within the implementation would provide a getter,setter for a simple "="
ex.
@implementation MyClass
@synthesize value;
@end
doing this you could set/get the value like this
value = @"Hi";
or
NSString *sTmp = value;
also you can use the dynamic keyword to manually create a setter and getter
but in this case it would look like a conventional method
번역해줘.
답글삭제@경진 - 2008/04/16 11:53
답글삭제나중에-_-;;
요즘은 좀 바뻐 ㅋㅋ
위에꺼 해주라고!
답글삭제