• 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
Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND]


  • Subject: Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND]
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 05 Feb 2009 14:24:34 -0800


The cell consumes the event loop and dispatches events. Look at the code via http://developer.apple.com/samplecode/PhotoSearch/listing9.html

ie:
if ([theEvent type] == NSMouseEntered || [theEvent type] == NSMouseExited) { [NSApp sendEvent:theEvent]; }
But do please log a bug; at worst, we can clarify with better documentation, or make it easier (somehow) with new API.



corbin


Absolutely. I was dispatching NSMouseEntered, NSMouseExited and NSLeftMouseDrag.
This was all working perfectly until I added code to do the autoscrolling. I used NSPeriodic for this (which I also tried dispatching, seeing as I was consuming it), and had the appropriate call to scroll the view on receipt of the periodic events. At that point I found the tracking areas to be out of place with respect to the displacement of the view.

Definitely log a bug on this issue. I suspect you may need a way of informing tracking areas to lazily update, and for them to update when scrolling. Thanks!


corbin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Confused about NSTrackingAreas with autoscroll (From: Luke Evans <email@hidden>)
 >Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND] (From: Luke Evans <email@hidden>)
 >Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND] (From: Corbin Dunn <email@hidden>)
 >Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND] (From: Luke Evans <email@hidden>)

  • Prev by Date: Re: Memory management question in Objective-C 2.0 @property notation
  • Next by Date: Transparency with PNG on NSImageView
  • Previous by thread: Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND]
  • Next by thread: Re: Confused about NSTrackingAreas with autoscroll
  • Index(es):
    • Date
    • Thread