[vw 7.9] MenuView>>openSubMenuDelayedBy:for: should not use #uiEvent

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

[vw 7.9] MenuView>>openSubMenuDelayedBy:for: should not use #uiEvent

Terry Raymond

#openSubMenuDelayedBy:for should not use #uiEvent. Instead it should do;

uiEventFor: aMenuItemView topComponent.

 

#uiEvent uses Dialog>>defaultParentWindow to find its window. This could actually

obtain the wrong window. You have to keep in mind there are background processes

that can asynchronously open windows or change the stacking order.

 

#openSubMenuDelayedBy: is given an actual menuView so it should be used

to get the correct window.

 

As a rule of thumb #uiEvent, should not be used whenever you can get the proper window.

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc