我有一个习惯类别(NSView
下级——实际上请说经过修改的编辑,但NOT有一个子级的<代码>NSTextView),I m对<代码>具有约束力。 NSArrayController Programally (I mostfin canNOT do it through Interface Buildinger),如:
[myEditor bind:@"string"
toObject:myController
withKeyPath:@"selection.content"
options:nil];
然而,在价值发生变化时,上述数值已更新到我的<条码>NSArrayController,即与“标准”一样。
我甚至使用以下<代码>options,但没有结果:
NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES],NSContinuouslyUpdatesValueBindingOption,
[NSNumber numberWithBool:YES],NSAllowsEditingMultipleValuesSelectionBindingOption,
[NSNumber numberWithBool:YES],NSConditionallySetsEditableBindingOption,
[NSNumber numberWithBool:YES],NSRaisesForNotApplicableKeysBindingOption,
nil];
任何想法?