0

在我的模型类中有属性:

@property (readwrite, nonatomic) NSString* prop;

...

-(NSString*) prop
{ return someExternalObject.stringProp;}
-(void) setProp: (NSString*) str
{ someExternalObject.stringProp = str;}

有时someExternalObject.stringProp会发生变化,我需要调用绑定到prop. 怎么做?

PS:我绝对不能将 Cocoa 元素直接绑定到someExternalObject.

4

0 回答 0