Get collection of all currently selected objects

How can I get a reference to all the currently selected objects in a GoDocument?

There doesn't seem to be a property named "IsSelected" or anything like that for GoObjects.

I just figured it out.


It would be nice to have a “IsSelected” property on the GoObject though.

GoObjects can be visible in multiple views. Selection is per view.

Run the Object Browser sample... it has one document with 2 views, and it displays the object heirarchy of the objects in the views.