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.
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
beginners@lists.squeakfoundation.org