Richard,
Sorry for the confusion. The 2.8 image I used was one that has some other stuff filed in. I tried a clean 2.8 and, indeed, the bug is there. FWIW, it is fixed in 2.9 and, if you so desire, you can update your 2.8 SimpleHierarchicalListMorph>>selection: with the following ======== selection: item "Called from outside to request setting a new selection. Assumes scroller submorphs is exactly our list. Note: MAY NOT work right if list includes repeated items"
| i | item ifNil: [^self selectionIndex: 0]. i _ scroller submorphs findFirst: [:m | m complexContents == item]. i > 0 ifTrue: [^self selectionIndex: i]. i _ scroller submorphs findFirst: [:m | m withoutListWrapper = item withoutListWrapper]. self selectionIndex: i =====
Cheers, Bob
On Wed, 1 Nov 2000 13:22:06 +1300 (NZDT) "Richard A. O'Keefe" ok@atlas.otago.ac.nz wrote:
I wrote
I *did* find a bug while poking around (try inspecting Week fromDate: (Date today), select self, and then choose Explore; you'll get a MessageNotUnderstood) but didn't describe it.
Bob Arning replied Well, could you describe it? I tried it in 2.8 and 2.9 and saw no MessageNotUnderstood.
Here goes.
Start Squeak 2.8 (on a PowerMac 7600/120 runing MacOS 8.6) by double-clicking on the image. Big window opens containing Welcom To, Getting Started, and 8 Play With Me windows.
Open a workspace. In that workspace type Week fromDate: (Date today) and type cmd-I.
That opens an inspector window with title Week; the left hand pane lists self, all inst vars, julainDayNum(ber cut off) and the right hand pane as yet displays nothing.
Select self in the left hand pane, press Option-Mouse (operate button), and choose explore (I).
Up pops a pink MessageNodeUnderstood: asJulianDayNumber --[Proceed]--[Abandon]--[Debug]--------- UndefinedObject(Object)>>doesnotUnderstand: Week(Date)>>= [] in SimpleHierarchicalListMorph>>selection: Array(SequenceableCollection)>>findFirst:
squeak-dev@lists.squeakfoundation.org