Please disregard my note below..
I confused myself by signaling concrete Notifications in my code, not remembering that other subclasses of Notification would be getting caught in my handler. Oops!
Probably better to subclass with my own and use that..
Sorry. - Chris
PS - that is an clever way to access a preference and still have an apparently thread-safe way to change it dynamically, using a resumable exception!
--- Chris Muller afunkyobject@yahoo.com wrote:
Date: Sun, 29 Dec 2002 20:54:40 -0800 (PST) From: Chris Muller afunkyobject@yahoo.com Subject: Apparent bug in Squeak's exception handling To: Squeak List squeak-dev@lists.squeakfoundation.org
In a stock 3.4 image, print this in a workspace:
[ InMidstOfFileinNotification signal ] on: Notification do: [ :noti | noti resume ]
This expression should return false, but it returns nil. InMidstOfFileinNotification is an Exception included with Squeak that has a defaultAction to return false.
But when wrapped in a Notification handler, as above, it seems to not return the correct value.
Is this a bug? Any assistance would be appreciated.
- Chris
Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Chris Muller wrote:
Please disregard my note below..
I confused myself by signaling concrete Notifications in my code, not remembering that other subclasses of Notification would be getting caught in my handler. Oops!
Probably better to subclass with my own and use that..
Sorry.
- Chris
PS - that is an clever way to access a preference and still have an apparently thread-safe way to change it dynamically, using a resumable exception!
Chris,
You should have a look at RuntimeEnvironments (on SqueakMap). It accomplishes that (and more), but in a less kludgy way than using exceptions. Also, it works even when you fork a new process.
- Stephen
Greetings:
How do you make a Morph that keeps its shape upon resizing? I would have thought that that would be a common thing to do, but I have not found anything in the documentation about how to do that.
Many thanks. :-)
Happy Holidays!
Bill Spight
squeak-dev@lists.squeakfoundation.org