buttons/controls inside nstextview

Discussion in 'Mac Programming' started by MrFusion, Aug 9, 2006.

  1. macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #1
    Any pointers on how to embed a button inside a nstextview?

    I am thinking about mail. If an email has an attachment, you can click the triangle to open the list with attachments.

    Thanks
     
  2. macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    Have you tried just adding it with addSubview:?

    NSTextView is just an NSView subclass, so you may be able to add subviews to it like any other class, including controls...
     
  3. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000

Share This Page