Setting the arrow cursor for an NSTextView

  • I have a subclass of NSTextView in my app and want to set the arrow
    cursor instead of the defaults cursor for that TextView. I tried -
    [NSScrollView setDocumentCursor:] on the enclosing scrollview but with
    no effect. Is there an other way to get rid of the ibeam cursor in the
    TextView?

    Cheers,
    Martin
  • try to write

    - (void) resetCursorRects
    {
    [ self addCursorRect: [ self bounds ] cursor: arrowCursor ];
    }

    i think it could work.

    >
    > I have a subclass of NSTextView in my app and want to set the arrow
    > cursor instead of the defaults cursor for that TextView. I tried -
    > [NSScrollView setDocumentCursor:] on the enclosing scrollview but with
    > no effect. Is there an other way to get rid of the ibeam cursor in the
    > TextView?
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