Cocoa in Carbon: mouse tracking
Cocoa in Carbon: mouse tracking
- Subject: Cocoa in Carbon: mouse tracking
- From: David Catmull <email@hidden>
- Date: Fri, 14 Oct 2005 11:35:15 -0700
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
field.
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden