Cocoa in Carbon: mouse tracking

  • I'm adding some Cocoa dialogs to a Carbon application, and I have it
    mostly working except for one issue: mouse tracking. My dialogs have
    text fields, and the mouse cursor doesn't change to the i-beam in
    those fields... unless you right-click.

    I could make an NSTextField subclass that overrides
    addCursorRect:cursor: (assuming that's what I need) and sets up a
    Carbon mouse tracking region, but I'm really hoping there's an easier
    solution. Has anyone dealt with this? Is there some other way I can
    make sure the Cocoa mouse tracking code does its thing?

    I investigated this in the Cocoa In Carbon sample, and found that the
    mouse cursor only changes the first time the mouse enters the text

    David Catmull
previous month october 2005 next month
          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