Hi everyone,
I'm very new to xcode and cocoa, I'm trying to develop an application that displays pictures on different NSWindows depending on whether they're landscape/portrait.
My problem is that I cannot get the windows to work together. I dragged and dropped windows into my MainMenu.xib from the library, and creater PortraitScreen and LandscapeScreen classes and connected one to each window. I've been trying to get a simple method which just changes text on a label on one window when a button is clicked on the main application window, i've tried putting methods in the main app.m class, and also the associated window classes, and connecting the button to the method but they just don't seem to work together..
Does anyone know why this may be and how to solve it? Thanks in advance for any help
I'm very new to xcode and cocoa, I'm trying to develop an application that displays pictures on different NSWindows depending on whether they're landscape/portrait.
My problem is that I cannot get the windows to work together. I dragged and dropped windows into my MainMenu.xib from the library, and creater PortraitScreen and LandscapeScreen classes and connected one to each window. I've been trying to get a simple method which just changes text on a label on one window when a button is clicked on the main application window, i've tried putting methods in the main app.m class, and also the associated window classes, and connecting the button to the method but they just don't seem to work together..
Does anyone know why this may be and how to solve it? Thanks in advance for any help