First item in an NsMenu does not appear to show up (cocoa osx)

Posted by Michael Minerva on Stack Overflow See other posts from Stack Overflow or by Michael Minerva
Published on 2010-04-20T21:15:44Z Indexed on 2010/04/21 1:13 UTC
Read the original article Hit count: 498

Filed under:
|
|
|

I am making my own NSMenu programatically and popping it up when a button is pressed. I create NsMenuItems and add them with the NSMenu method insertItem:atIndex:. For some reason whatever item is at position zero in the menu does not show up. Is this how the menu is supposed to work?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about osx