I think the reason was the need of registering onWindowClose: event or closing the window by the code easily. Now you can do : | w | w := Object inspect. w onWindowClosed: [ ... ]. ... w close. 2013/6/9 Igor Stasenko <siguctua@gmail.com>
On 8 June 2013 20:29, Sabine Knöfel <sabine.knoefel@gmail.com> wrote:
Hi,
while developing my app with seaside, I sometimes use inspect within any statement. I am used from Pharo 1.4 and from other smalltalk dialects, that
inspect returns the receiver itself. But in Pharo 2.0 it returns an instance of SystemWindow. I dont see any sense in that. It that with intent?
I was not behind the change, but i think answering window is more useful than just receiver. Since you sending 'inspect' message to object you already having access to it, and getting same object back is less useful, than inspector window, which you can give extra instructions (like placement etc).
Sabine
-- View this message in context: http://forum.world.st/inspect-returns-iOf-SystemWindow-and-not-receiver-tp46... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
-- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 *Villeneuve d'Ascq*