[Glass] Displaying Dynamic Instance Variables in Seaside Inspector

Reg Krock reg.krock at gmail.com
Mon Jun 23 12:04:51 PDT 2014


Dale,

I made a change to the following method so the inspector displays dynamicInstVars in the seaside inspector:

This is in the 'seaside-gemStone-tools-production’ package.

Object>>inspectorFields
	| members |
	members := Array new writeStream.
	self class allInstVarNames withIndexDo: [ :each :index |
		members nextPut: each -> (self instVarAt: index) ].
	self dynamicInstanceVariables withIndexDo: [:each :index |
		members nextPut: each -> (self dynamicInstVarAt: each) ].		
	self class isVariable ifTrue: [
		1 to: self size do: [ :index |
			members nextPut: index -> (self at: index) ] ].
	^ members contents

If this okay would it be possible for you to add this to the standard code.

If there is a better way to send this change to you please let me know.

Regards,

Reg


More information about the Glass mailing list