I'm new to Cocoa and am having trouble splitting my nib file into multiple nib files.
My MainMenu.nib
contains a Tracker Controller
object, which is a subclass of NSObject
. It has an outlet to a Show Tracker
menu item in my main menu.
My TrackerWindow.nib
has the File's Owner class set to TrackerController
, and has outlets to the window and view in that nib file.
I'm not sure how to make the File's Owner of the second nib be a proxy for the instantiated TrackerController
in the first nib. (I believe I need the TrackerController
instance in the first nib so that I can use IB to set the menu item outlet.)
Am I doing it wrong? If so, how can I use IB to set outlets for the same object in multiple nib files? If not, how can I make the File's Owner of the second nib point to the TrackerController
I've already instantiated in the first nib?