inspectorExtraAttributes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

inspectorExtraAttributes

Stevenson, Dave (contr)

We found the following Trippy override to be useful, especially when debugging deep copies of large object structures. Do others find it generally useful enough to be added to the base?:

 

Object>>inspectorExtraAttributes

                "Subclasses may reimplement this to answer a sequence of

                DerivedAttribute or TextAttribute instances that should show up

                in the inspector in addition to named instance variables and

                indexed variables. See implementors for an example."

 

                ^Array with:

                                (Tools.Trippy.DerivedAttribute

                                                label: #identityHash << #dialogs >> 'identityHash'

                                                valueBlock: [self identityHash])

 

Stevenson, Dave (contr) <[hidden email]>

Smalltalk Developer

Manufacturing Execution System (MES) / Shop Floor Control
El Segundo: 310-524-5771

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: inspectorExtraAttributes

Boris Popov, DeepCove Labs (SNN)
Yup, we also have one for regular hash as well. 

Sent from my iPhone

On 17 Nov 2010, at 03:50, "Stevenson, Dave (Contr)" <[hidden email]> wrote:

We found the following Trippy override to be useful, especially when debugging deep copies of large object structures. Do others find it generally useful enough to be added to the base?:

 

Object>>inspectorExtraAttributes

                "Subclasses may reimplement this to answer a sequence of

                DerivedAttribute or TextAttribute instances that should show up

                in the inspector in addition to named instance variables and

                indexed variables. See implementors for an example."

 

                ^Array with:

                                (Tools.Trippy.DerivedAttribute

                                                label: #identityHash << #dialogs >> 'identityHash'

                                                valueBlock: [self identityHash])

 

Stevenson, Dave (contr) <[hidden email]>

Smalltalk Developer

Manufacturing Execution System (MES) / Shop Floor Control
El Segundo: 310-524-5771

 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: inspectorExtraAttributes

Travis Griggs-4
In reply to this post by Stevenson, Dave (contr)

On Nov 16, 2010, at 7:48 PM, Stevenson, Dave (Contr) wrote:

We found the following Trippy override to be useful, especially when debugging deep copies of large object structures. Do others find it generally useful enough to be added to the base?:
 
Object>>inspectorExtraAttributes
                "Subclasses may reimplement this to answer a sequence of
                DerivedAttribute or TextAttribute instances that should show up
                in the inspector in addition to named instance variables and
                indexed variables. See implementors for an example."
 
                ^Array with:
                                (Tools.Trippy.DerivedAttribute
                                                label: #identityHash << #dialogs >> 'identityHash'
                                                valueBlock: [self identityHash])

Here is an overview of the modern/preferred way to do this kind of thing:



--
Travis Griggs
Objologist
Light travels faster than sound. This is why some people appear bright until you hear them speak...





_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: inspectorExtraAttributes

Alan Knight-2
Wow. I didn't know we could do that that. That's very neat.

On 2010-11-19 2:59 PM, Travis Griggs wrote:

On Nov 16, 2010, at 7:48 PM, Stevenson, Dave (Contr) wrote:

We found the following Trippy override to be useful, especially when debugging deep copies of large object structures. Do others find it generally useful enough to be added to the base?:
 
Object>>inspectorExtraAttributes
                "Subclasses may reimplement this to answer a sequence of
                DerivedAttribute or TextAttribute instances that should show up
                in the inspector in addition to named instance variables and
                indexed variables. See implementors for an example."
 
                ^Array with:
                                (Tools.Trippy.DerivedAttribute
                                                label: #identityHash << #dialogs >> 'identityHash'
                                                valueBlock: [self identityHash])

Here is an overview of the modern/preferred way to do this kind of thing:



--
Travis Griggs
Objologist
Light travels faster than sound. This is why some people appear bright until you hear them speak...




_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

-- 
Alan Knight [|], Engineering Manager, Cincom Smalltalk
[hidden email]
[hidden email]
http://www.cincom.com/smalltalk

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc