I have a tableView in a kind of inspector window, and I want its delegate and dataSource to always be the current document.
I looked at the documentation, and saw no delegate methods for this. I also tried registering for a Key-Value change of current document like this:
but it didn't work.
Any suggestions?
I looked at the documentation, and saw no delegate methods for this. I also tried registering for a Key-Value change of current document like this:
Code:
[[NSDocumentController sharedDocumentController] addObserver:self forKeyPath:@"currentDocument" options:NSKeyValueObservingOptionNew context:nil];
Any suggestions?