How would you make a button display a window in the same Nib File when it is clicked? Sorry If This Is Vague.
+5
A:
Set the button's action to makeKeyAndOrderFront:
with the other window as the target.
Alex
2009-06-03 17:58:22
How would i make the other window the target?
Joshua
2009-06-03 17:59:45
You drag a wire from the button's action onto the icon for the other window. Just like you would wire up anything else in IB.
Alex
2009-06-03 18:22:47
Do you set it's action to makeKeyAndOrderFront: from Files Owner?
Joshua
2009-06-03 18:30:50
When you drag the connection from the button to the window, IB will show a little HUD-styled pop-up menu with a list of available action selectors in it. Click on makeKeyAndOrderFront:.
Peter Hosey
2009-06-03 18:32:11
But what connection do I drag?
Joshua
2009-06-03 18:34:03
Control-drag from the button to the window, or to the icon for the window in the Nib document window. You might also want to read some of the Interface Builder tutorial information in the documentation...
Mark Bessey
2009-06-03 18:38:26