• 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
cursorRects/trackingRects in non-key window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cursorRects/trackingRects in non-key window


  • Subject: cursorRects/trackingRects in non-key window
  • From: Joe Baskerville <email@hidden>
  • Date: Wed, 26 Jul 2006 11:07:29 +0100

hi list,


ok, i have a problem with using cursorRects in a non-key window. heres the deal:


I have an app where there are 2 floating windows that need to have rollover areas in them. I need to be able to set areas that cause a cursor change to indicate a hotspot, ie it changes to the pointing hand cursor. due to the main window in the app having macromedia flash content inside a webview, the main window needs to remain key, or the flash content slows down (this is another story). so the 2 floating windows cannot become key, which is how they currently work.

fine i think, ill just implement tracking rects inside the views in my floating windows, and change the cursor accordingly. which actually kind of works, in that i can track when the mouse has entered a tracking rect, and exited, and change the cursor. but when the user clicks, the mousedown/up seems to override the cursor change and it goes back to the default pointer. ive forced it to set the cursor again to the pointing hand in the mouseup but it flips back again to the default pointer.

so, fine i think, ill try it using addCursorRect. but this doesnt seem to work if the window doesnt become key. i can get it working fine in a key window.

anybody have any ideas about this, am i missing something obvious? or anybody know a better way to do this?

cheers for your help,

joe.
_______________________________________________
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: Re: Window levels - is this safe?
  • Next by Date: [HOWTO] Non-control NSViews in NSTableView with Core Data
  • Previous by thread: Dragging window when modifier keys pressed.
  • Next by thread: [HOWTO] Non-control NSViews in NSTableView with Core Data
  • Index(es):
    • Date
    • Thread