So, again, why 'object inspect' should answer an object?
... or another reason to answer the inspector window.. because right now it is badly broken: EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject but: Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200) that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand! you can imagine how annoying it is, when you want to debug morphic code. The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like Smalltalk tools inspectorWindowOn: object (i changed the code to answer a window right now, but we need to solve that dilemma) -- Best regards, Igor Stasenko.
On 26 August 2013 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200 )
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
... i mean, changed in my working image. not in Pharo :)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
As a side note: In Dolphin it returns the inspector :) Esteban A. Maringolo 2013/8/26 Igor Stasenko <siguctua@gmail.com>:
On 26 August 2013 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200)
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
... i mean, changed in my working image. not in Pharo :)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value I thought we fixed exactly the bug you experience since Ben complained a lot about it ;) On 2013-08-26, at 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200)
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
-- Best regards, Igor Stasenko.
ah, ok.. maybe i use outdated image? On 26 August 2013 22:41, Camillo Bruni <camillobruni@gmail.com> wrote:
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value
I thought we fixed exactly the bug you experience since Ben complained a lot about it ;)
On 2013-08-26, at 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200 )
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
(oops.. pressed send before finishing mail) Pharo3.0 Latest update: #30335 .. so it just 10 days old On 26 August 2013 22:51, Igor Stasenko <siguctua@gmail.com> wrote:
ah, ok.. maybe i use outdated image?
On 26 August 2013 22:41, Camillo Bruni <camillobruni@gmail.com> wrote:
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value
I thought we fixed exactly the bug you experience since Ben complained a lot about it ;)
On 2013-08-26, at 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200)
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
that is pretty new, so we didn't fix this issue then :/ (or more probably, we didn't fix all users). => can you open an issue with a description on how to reproduce it? On 2013-08-26, at 22:52, Igor Stasenko <siguctua@gmail.com> wrote:
(oops.. pressed send before finishing mail)
Pharo3.0 Latest update: #30335
.. so it just 10 days old
On 26 August 2013 22:51, Igor Stasenko <siguctua@gmail.com> wrote:
ah, ok.. maybe i use outdated image?
On 26 August 2013 22:41, Camillo Bruni <camillobruni@gmail.com> wrote:
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value
I thought we fixed exactly the bug you experience since Ben complained a lot about it ;)
On 2013-08-26, at 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200)
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
done https://pharo.fogbugz.com/default.asp?11465#83505 On 26 August 2013 22:54, Camillo Bruni <camillobruni@gmail.com> wrote:
that is pretty new, so we didn't fix this issue then :/ (or more probably, we didn't fix all users).
=> can you open an issue with a description on how to reproduce it?
On 2013-08-26, at 22:52, Igor Stasenko <siguctua@gmail.com> wrote:
(oops.. pressed send before finishing mail)
Pharo3.0 Latest update: #30335
.. so it just 10 days old
On 26 August 2013 22:51, Igor Stasenko <siguctua@gmail.com> wrote:
ah, ok.. maybe i use outdated image?
On 26 August 2013 22:41, Camillo Bruni <camillobruni@gmail.com> wrote:
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value
I thought we fixed exactly the bug you experience since Ben complained a lot about it ;)
On 2013-08-26, at 22:32, Igor Stasenko <siguctua@gmail.com> wrote:
... or another reason to answer the inspector window.. because right now it is badly broken:
EyeInspector class>>inspect: anObject InspectorWrapper openInspector: (self inspector: anObject). ^ anObject
but:
Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200)
that explains why, when i taking the morph's halo and then use debug context menu and press inspect it, it puts morph info the hand, and changing its dimensions.. instead of putting inspector window into hand!
you can imagine how annoying it is, when you want to debug morphic code.
The solution is, of course to answer an inspector window instead of inspected object.. or, since people argued against this, for such cases, there should be extra protocol, like
Smalltalk tools inspectorWindowOn: object
(i changed the code to answer a window right now, but we need to solve that dilemma)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
On 26 August 2013 22:41, Camillo Bruni <camillobruni@gmail.com> wrote:
I think we agreed that - #inspect: returns the inspected value - #inspector: returns the inspector for the given value
well, it won't work that way.. #inspector: returns the inspector model , but not the actual morph i don't know how to get the window morph from it (maybe its easy?)..
I mean, even if you change this to use #inspector: instead of #inspect: Morph>>inspectInMorphic: evt evt hand attachMorph: ((Smalltalk tools inspect: self) extent: 300@200) it won't work (#extent: did not understood by inspector object, neither you can attach it to hand). So, i forced to change this method to look like this: inspectInMorphic: evt Smalltalk tools inspect: self yeah.. i will open the issue then. -- Best regards, Igor Stasenko.
participants (3)
-
Camillo Bruni -
Esteban A. Maringolo -
Igor Stasenko