Implement NSMenu category method from Skim as a static function, since it's not general.  Modify based on my guess at what this code was supposed to do (since it always returned >= 0).  Doesn't handle multiple windows and separator items correctly, but at least runs now.
Implement NSMenu category method from Skim as a static function, since it's not general.  Modify based on my guess at what this code was supposed to do (since it always returned >= 0).  Doesn't handle multiple windows and separator items correctly, but at least runs now.

git-svn-id: cb3fc60f0f557b927b8032d8a94e869b6f9f230b@1180 0fceea05-a30d-0410-8a8b-80ef821fb0a1

jasongrout/skim,camillobruni/skim,camillobruni/skim,camillobruni/skim,camillobruni/skim,jasongrout/skim