I am trying to develop NSPopUpButtonone that will serve as a filter for some data source, say NSArrayController, that populates the table.
I can bind NSArrayControllerfrom the menu to the selection path so that the data is filtered correctly, without any problems.
The tricky part, I want the contents of this NSPopUpButtonto NSArrayControllerrely on using bindings, but I would like to add a Show All menu item or at least some item that is not from the main data and performs some special actions, except filtering the table with using bindings and master data.
I'm trying to do something like the NSPopUpButtonfinder used in the filter panel, the last menu item performs a special action, and the rest just filter the result.
I understand that the approach is to forget about the bindings and do it all programmatically, because I believe that there is no way to spoil with the help NSArrayControllerand bindings to add this custom menu item that does not rely on the main data, but since I found nothing in Apple Docs, and here I would like to share my thoughts ... any ideas?
source
share