I am writing a carbon app that has a main window, and an output window. I only have a command handler for the main window, because the output to the output window should be done by various subroutines.
I tried creating a WindowRef called BothWindows where BothWindows[0]=MainWindow and BothWindows[1]=OutputWindow.
Then Both Windows is passed through the (void *) userData when I installed the main WindowCommandHandler. However I am unable to access the output window and only get bad access errors during debug...
Thanks in advance.