Making HUD window - pressing Cancel closes app

Hi,

I have an APP I made and just as an experiment I switched the main window to HUD (NSPanel). The problem is, if a dialog box opens and the user presses Cancel, the entire app exits. I found out that the problem is because the window is an NSPanel and not the usual NSWindow. Is there any way to solve this?

Thanks!

i think what you should have done is left the window, and just created a new NSPanel and just don’t have the main window show on start.

What’s the code line you used to open the dialog? Is it via Interface Builder?