A popup button with a static image (Cocoa OSX)

Posted by Michael Minerva on Stack Overflow See other posts from Stack Overflow or by Michael Minerva
Published on 2010-04-19T16:49:51Z Indexed on 2010/04/19 16:53 UTC
Read the original article Hit count: 277

Filed under:
|
|

I am trying to make a popup button that always displays a + as its image and when you click on it, a context menu pops up that will allow you to decide what type of object you want to add. Is there anyway to do this using an NSPopupButton? I saw in the specs for NSPopupButotn that the method SetImage has no effect so it seems that this is likely not going to work using this class. Is this correct?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about osx