SFML community forums

Help => Window => Topic started by: colormotor on June 25, 2011, 07:44:10 pm

Title: Quit and Close event
Post by: colormotor on June 25, 2011, 07:44:10 pm
Hi
I am using SFML 1.6 on OSX and I am not able to clean up my app properly when quitting via the Quit menu entry.
I expected to get a ::Close event in that case but nothing happens.
Am I missing something here?
thanks!
Title: Quit and Close event
Post by: Canadadry on June 25, 2011, 08:19:07 pm
No that's normal. If you do file->close you will get this event. This is the default ehavior of a mac program. Quit should quit immediatly the app.
Title: Quit and Close event
Post by: colormotor on June 26, 2011, 08:12:05 pm
Is there a way to receive a notification when the user quits?
I need to release opengl objects and save the app state when that happens
Title: Quit and Close event
Post by: Hiura on June 28, 2011, 11:46:41 pm
Quote from: "colormotor"
Is there a way to receive a notification when the user quits?

No, not with 1.6.

Menus are not implemented yet in version 2 so there's no planned behavior. Quit menu will probably be disable.
Title: Quit and Close event
Post by: colormotor on June 29, 2011, 11:11:24 am
ok thanx!