views:

8

answers:

0

hello! i have next situation:

I have own controller ( myController : NSObjectController ) an overridden method -(id)valueForKeyPath in it for bind my attributes. And I have some method like -(BOOL)canRemove;

I want to button 'Enable' to -(BOOL)canRemove; but can't. It must like bind button 'Enable' to canAdd of NSController.

I sink i must return selector witch call my method in valueForKeyPath: when keyPath is 'myMethod name'.