Login  Register

Re: inspect returns iOf SystemWindow and not receiver

Posted by Clément Béra on Jun 09, 2013; 5:38am
URL: https://forum.world.st/inspect-returns-iOf-SystemWindow-and-not-receiver-tp4692399p4692427.html

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 <[hidden email]>
On 8 June 2013 20:29, Sabine Knöfel <[hidden email]> 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-tp4692399.html
> 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