0

I know this is not normally recommended but I really need to access the NSPopupButtonCell of NSPopupButton. Is there a way to do this?

Mike2012
  • 7,629
  • 15
  • 84
  • 135

1 Answers1

2
[myPopup cell];

Kind of obvious, when you think about it. ;)

Really, tho'; NSPopUpButton : NSButton : NSControl; NSControl has -[cell], so NSPopUpButton does too.

I guess what I'm trying to say, is; if you can't find a method that the object you are looking at must have, check its superclasses. (Or just use text completion in Xcode and a few lucky guesses. ;)

Williham Totland
  • 28,471
  • 6
  • 52
  • 68