• 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: NSTrackingArea pending install
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTrackingArea pending install


  • Subject: Re: NSTrackingArea pending install
  • From: Michael Vannorsdel <email@hidden>
  • Date: Fri, 11 Jun 2010 14:30:55 -0600

I had this happen a couple times when dealing with threading accidents.  If the tracking rects are added from a secondary thread or the window is ordered front by a secondary thread, then the tracking areas will be stuck in a pending state.  There's probably more reasons for this but these are the two I'm personally familiar with.


On Jun 11, 2010, at 1:42 PM, Rainer Standke wrote:

> Hello all,
>
> I have a subclassed NSImageView that is a drag source and a drag destination. I am trying to have an NSTrackingArea so that when the drag out of the image view leaves they window I can update the cursor to indicate deletion of the item - I am thinking of the cursor that looks like an explosion cloud.
>
> When I log my tracking area it tells me it's "pending install", and I never get any of the expected mouse-move messages.
>
> This snippet is in mouseDown on the image view:
>
> NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | NSTrackingEnabledDuringMouseDrag | NSTrackingActiveAlways;
>
> NSTrackingArea *trkArea = [[NSTrackingArea alloc] initWithRect:[[self window] frame] options:options owner:self userInfo:nil];
>
> [self addTrackingArea:trkArea];
> [self updateTrackingAreas];
>
> NSLog(@"trkArea: %@", trkArea);
>
>
> I am running out of ideas what to try - any help would be appreciated.

_______________________________________________

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

  • Follow-Ups:
    • Re: NSTrackingArea pending install - NSTrackingEnabledDuringMouseDrag not working
      • From: Rainer Standke <email@hidden>
References: 
 >NSTrackingArea pending install (From: Rainer Standke <email@hidden>)

  • Prev by Date: NSTrackingArea pending install
  • Next by Date: Re: NSTrackingArea pending install - NSTrackingEnabledDuringMouseDrag not working
  • Previous by thread: NSTrackingArea pending install
  • Next by thread: Re: NSTrackingArea pending install - NSTrackingEnabledDuringMouseDrag not working
  • Index(es):
    • Date
    • Thread