• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa in Carbon: mouse tracking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Java splashscreen classes not instantiated??
  • Next by Date: Some questions about the sketch example...
  • Previous by thread: Re: Java splashscreen classes not instantiated??
  • Next by thread: Some questions about the sketch example...
  • Index(es):
    • Date
    • Thread