PDA

View Full Version : Close window




onlyproductions
Mar 28, 2008, 08:47 AM
Hello i have a window which i want to close after a button is pressed how would i do this?



kainjow
Mar 28, 2008, 09:04 AM
Please be more specific - what language/API?

onlyproductions
Mar 28, 2008, 08:22 PM
Please be more specific - what language/API?

srry bout that im using coaco (objective c)

whooleytoo
Mar 28, 2008, 08:33 PM
Use one of the following methods from the NSWindow class

- orderOut to hide the window.
- close to hide the window, and will also release the window object if it's set to release on close.
- performClose to simulate a mouse-click on the close box, and will invoke the windowShouldClose method if it has been implemented.