Dear expert,
I have a problem with an NSBrowser in my Appkit and nib file based Obj-C macOS program. When the user performs "select all" from the menu the NSBrowser behaves correctly and selects all items in the last column. In addition, my program needs to be informed about it - like the Finder is - to report the number of selected items. Therefore, I placed a selectAll: in a subclass of NSBrowser. Unfortunately, that selectAll: never gets called which is my problem. In contrast, my overwritten copy: method gets called after a "copy" menu click indicating that I am not completely wrong.
I have replicated this behavior in a single-purpose xib-based test program and found that no delegate method is called when I click "select all"
Is subclassing NSBrowser the right way to get notified about a selectAll:?
History
Deprecation warnings of NSMatrix caused me to switch to the NSSet-based NSBrowser interface. No big deal except for the selectAll: issue. Back then I used a subclass of NSMatrix to implement selectAll: and it worked well.
NSMatrix
Maybe NSBrowser is still using NSMatrix which receives the selectAll:. Can I somehow mute the NSMatrix inside the NSBrowser?