ObjectExplorer and Text instances

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

ObjectExplorer and Text instances

Karl Ramberg
Hi,
While inspecting and exploring at various Text instances I noticed that the inspector shows the instance variables to Text instances (string and runs) but explorer just show the string directly, not as a instance variable, and runs is not shown at all.

Anybody know why that is ?

Cheers,
Karl


Reply | Threaded
Open this post in threaded view
|

Re: ObjectExplorer and Text instances

Bert Freudenberg
On 15.06.2014, at 21:27, karl ramberg <[hidden email]> wrote:

> Hi,
> While inspecting and exploring at various Text instances I noticed that the inspector shows the instance variables to Text instances (string and runs) but explorer just show the string directly, not as a instance variable, and runs is not shown at all.
>
> Anybody know why that is ?

Text whichClassIncludesSelector: #explorerContents
==> SequenceableCollection


- Bert -






smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ObjectExplorer and Text instances

Karl Ramberg
Ah, thank you.
Now I made it possible to drill down into the guts of text in explorer :-)


Text>>explorerContents

^Array new: self size streamContents: [ :stream |
(self class allInstVarNames asOrderedCollection withIndexCollect: [:each :index |
stream nextPut: (
ObjectExplorerWrapper
with: (self instVarAt: index)
name: each
model: self )]).
(1 to: self size do: [ :index |
stream nextPut: (
ObjectExplorerWrapper
with: (self at: index)
name: index printString
model: self) ])]

Cheers,
Karl


On Mon, Jun 16, 2014 at 11:47 AM, Bert Freudenberg <[hidden email]> wrote:
On 15.06.2014, at 21:27, karl ramberg <[hidden email]> wrote:

> Hi,
> While inspecting and exploring at various Text instances I noticed that the inspector shows the instance variables to Text instances (string and runs) but explorer just show the string directly, not as a instance variable, and runs is not shown at all.
>
> Anybody know why that is ?

Text whichClassIncludesSelector: #explorerContents
==> SequenceableCollection


- Bert -