Non opaque NSView subclass moving its window when dragged

  • Hi the list,

    I have an NSView subclass which returns no for -isOpaque (intended).
    When clicking and dragging inside that view, the window moves, which
    is not what I want. The mouseXxxx: methods are overridden, and do not
    call super's. Does someone have a clue on this ?

    Thanks,

    Raphael
  • Is this in a textured/metal window?

    Raphael Sebbe @ Google wrote:
    > Hi the list,
    >
    > I have an NSView subclass which returns no for -isOpaque (intended).
    > When clicking and dragging inside that view, the window moves, which
    > is not what I want. The mouseXxxx: methods are overridden, and do not
    > call super's. Does someone have a clue on this ?
    >
    > Thanks,
    >
    > Raphael
  • Raphael Sebbe wrote:
    > I have an NSView subclass which returns no for -isOpaque (intended).
    > When clicking and dragging inside that view, the window moves, which
    > is not what I want. The mouseXxxx: methods are overridden, and do
    > not call super's. Does someone have a clue on this ?

    Look up -[NSView mouseDownCanMoveWindow].

    "This allows applications to determine the region by which a window
    can be moved. By default, this method returns NO if the view is
    opaque; otherwise, it returns YES. Subclasses can override this method
    to return a different value."

    --
    Greg Parker    <gparker...>    Runtime Wrangler
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today