Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Question: App closing event #273

Open
AJFaraday opened this issue Apr 8, 2015 · 3 comments
Open

Question: App closing event #273

AJFaraday opened this issue Apr 8, 2015 · 3 comments

Comments

@AJFaraday
Copy link

Is there a way to have an ensure-style block at the end of a shoes app to fire an event on closing the window?

@ccoupe
Copy link

ccoupe commented Apr 8, 2015

Sort of. Maybe. Over at the Shoes 3.2 issues there is shoes/shoes3#26 which shows the window events and their problems. Not mentioned there is that if you call exit() none of the gui events fire.

@AJFaraday
Copy link
Author

So what I'm getting from that is that I should probably try the newer, possibly less finished version of Shoes?

(Incidentally, my app is launching another app, and I need to close it to avoid zombie processes (so UI actions aren't really the problem)

@ccoupe
Copy link

ccoupe commented Apr 9, 2015

Shoes 3.2 is a lot more refined than 3.1 (the repo you reported this bug to ) and it works better than it ever did. Shoes 4 is the java/swt version that isn't completely nailed down.

To close/kill a Ruby spawned process (not really a Shoes process/window) is highly platform specific. I suggest you file a new bug report at https://github.com/Shoes3/shoes3 with some additional details (like the platform you are using) or if your running Shoes4 then the issue tracker is https://github.com/shoes/shoes4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants