Help with simple customization of Inspector window

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

Help with simple customization of Inspector window

Sophie424
I want the title of my Inspector window to use #printOn: on the target
object (like the Explorer window does), rather than just show the name of
the class. I've poked around and cannot figure out what I should change. Any
clues / hints appreciated :-)

Also, is printOn: the right one to override for this kind of thing? I am
simply trying to customize how my objects appear in most of the development
tools.

Thanks.



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Help with simple customization of Inspector window

Tapple Gao
On Sat, Nov 03, 2007 at 09:05:12PM -0500, itsme213 wrote:
> I want the title of my Inspector window to use #printOn: on the target
> object (like the Explorer window does), rather than just show the name of
> the class. I've poked around and cannot figure out what I should change. Any
> clues / hints appreciated :-)

Looking at Inspector class>>openAsMorphOn: , it sends the
message defaultLabelForInspector to the object

> Also, is printOn: the right one to override for this kind of thing? I am
> simply trying to customize how my objects appear in most of the development
> tools.

I don't know. defaultLabelForInspector doesn't have very many
senders. printOn: is used more often, probably, but you would
have to look at the tool

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners