uicontextmenuscontextmenusdesignBuilding like it's 1984: A comprehensive guide to creating intuitive context menus - Height
Building like it's 1984: A comprehensive guide to creating intuitive context menus - Height height.app · Originally posted on Pinboard
So as you can see, building context menus is quite a bit more complicated than it looks from the outside!
Another good "UI is more complex than pictures" example.