So this is my noobish problem.
The situation:
2 NIBs:
MainMenu
AddPersonPanel
Within MainMenu contains an instance of appController, appController contains an variable for AddPersonController. When a button is pressed on the window of mainmenu, it shows the panel of AddPersonPanel. AddPersonPanel is a custom class of AddPersonController.
So, when I click the add button in the AddPersonPanel, it calls the add function in AddPersonController. I have a NSImage within this class that I need to be passed to the appController.
I have tried making an instance of appController in the AddPersonPanel and linking the add button to the add function in appController, but it never executes.
How can I return the image to the appController, or call a function from appController and pass it a variable.
Thanks guys, let me know if this needs more detail or even some code.
The situation:
2 NIBs:
MainMenu
AddPersonPanel
Within MainMenu contains an instance of appController, appController contains an variable for AddPersonController. When a button is pressed on the window of mainmenu, it shows the panel of AddPersonPanel. AddPersonPanel is a custom class of AddPersonController.
So, when I click the add button in the AddPersonPanel, it calls the add function in AddPersonController. I have a NSImage within this class that I need to be passed to the appController.
I have tried making an instance of appController in the AddPersonPanel and linking the add button to the add function in appController, but it never executes.
How can I return the image to the appController, or call a function from appController and pass it a variable.
Thanks guys, let me know if this needs more detail or even some code.