Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Quit and Close event  (Read 2490 times)

0 Members and 1 Guest are viewing this topic.

colormotor

  • Newbie
  • *
  • Posts: 3
    • View Profile
Quit and Close event
« 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!

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Quit and Close event
« Reply #1 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.

colormotor

  • Newbie
  • *
  • Posts: 3
    • View Profile
Quit and Close event
« Reply #2 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

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Quit and Close event
« Reply #3 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.
SFML / OS X developer

colormotor

  • Newbie
  • *
  • Posts: 3
    • View Profile
Quit and Close event
« Reply #4 on: June 29, 2011, 11:11:24 am »
ok thanx!

 

anything