Bind with a specific instance of NSValueTransformer
MyCustomValueTransformer *valueTransformer =
[[MyCustomValueTransformer alloc] init];
NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary];
[bindingOptions setObject: valueTransformer forKey:@"NSValueTransformer"];
[myControl  bind:@"value"  toObject:arrayController withKeyPath:@"selection.optionValue"  options:bindingOptions];



发表评论

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA image