[Newbies] Help with simple customization of Inspector window

Matthew Fulmer tapplek at gmail.com
Sun Nov 4 02:17:56 UTC 2007


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


More information about the Beginners mailing list