Add WebView To NSMenu

Discussion in 'Mac Programming' started by Blakeasd, Mar 20, 2011.

  1. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    Is it possible to add a WebView to a NSMenu, if so, how?
    Thanks
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    NSMenuItem has a setView: method so I imagine it would work.

    The real question is, why? ;)
     
  3. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #3
    I get a warning stating NSMenu may not respond to setView:
    Any Ideas?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Because NSMenu and NSMenuItem are not the same thing? Attention to detail is critical when programming.

    A NSMenu is a container for multiple NSMenuItems.
     
  5. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
  6. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #6
    Could you give us perhaps just a hint as to why? My first reaction to reading the topic subject was WTF. I'm really intrigued.
     
  7. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009

Share This Page