uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
129 stars 13 forks source link

Don't crash when a part's style is changed while it is being tracked #16

Open uliwitness opened 12 years ago

uliwitness commented 12 years ago

Right now, parts recreate their views when the style changes. Problem is, when you're in a mouseDragged handler or so, the NSButton goes away while it is still tracking the mouse, and we crash. Either find a way to recreate the views without that crash, or failing that, at least follow HyperCard's rule of "whatever the user does, don't crash" and lock the "style" property while tracking.

But really, mouse-over indicators and stuff like that should be able to change button styles.