View Single Post
As I suspected — you are doing "make new shape at end of graphics" (emphasis mine). That puts your new shape behind everything drawn so far. You might prefer "make new shape at front of graphics" to have the last thing added be the frontmost object.

I'm glad I didn't have anything important in that frontmost OmniGraffle window when I ran your code! :-)