Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Xino

macrumors member
Original poster
Sep 5, 2008
36
0
I've created an application with multiple windows. Some windows doesn't open when the application starts because I said not to.

I want to open these windows by selecting a menu item like "Preferences...". With "orderFront" I'm able to do so but when I close the window after opening it and reopen it again, the application crashes.

How can I reopen a window after closing it? The function "orderFront" makes the application crashing.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Have you set the window to get released on close in Interface Builder? If so that's your problem: when you close it it gets released out of memory so next time you try and use it crash city.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.