3
Xcode에서 바인딩을 사용하는 방법을 이해하려고합니다.이 개체는 KVC 호환입니까?
#import <Foundation/Foundation.h>
@interface OddsItem : NSObject {
NSMutableDictionary *properties;
}
@property(nonatomic, retain) NSMutableDictionary *properties;
@end
및
#import "OddsItem.h"
@implementation OddsItem {
}
@synthesize properties;
- (void)dealloc {
[properties release];
[super dealloc];
}
@end
이이 KVC - 준수 :이 클래스가? 내가 찾은 예들은 합성 된 속성의 시대 이전 인 것 같습니다.
KVC와 호환되지 않는 경우 어떻게해야합니까?
내 'synthesised'의 getter/setter 메서드를 재정의하면 어떨까요? getter와 setter에서는'_properties' 권한에 직접 액세스 할 수 있습니까? – hashier