How can I share an NSArrayController between two nib files?

I have an array of images and two nib files. One nib file has a window that displays images in an NSTableView. Another nib has a window that draws an array of images in NSView, and also highlights the selection of the selected images.

The array of images is managed by NSArrayController. I'm having trouble getting two feathers to share with NSArrayController. I would have two separate NSArrayControllers tied to the same content, but I also want both nibs to share the controller selection; that is, if you select an image in the table window, it will also be selected in another window.

Is there a standard way to do this?

+5
source share
1 answer

I would have two separate NSArrayControllers tied to the same content, but I also want both nibs to share the controller selection; that is, if you select an image in the table window, it will also be selected in another window.

Is there a standard way to do this?

There are two separate NSArrayControllers linked to the same content and selection indices .

+5
source

All Articles