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

NSTrackingArea pending install


  • Subject: NSTrackingArea pending install
  • From: Rainer Standke <email@hidden>
  • Date: Fri, 11 Jun 2010 12:42:46 -0700

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.

Thanks,

Rainer


_______________________________________________

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
      • From: Michael Vannorsdel <email@hidden>
  • Prev by Date: Re: NSControl objects on a custom view
  • Next by Date: Re: NSTrackingArea pending install
  • Previous by thread: Re: zoom question
  • Next by thread: Re: NSTrackingArea pending install
  • Index(es):
    • Date
    • Thread