• 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: trackingAreas can be snuck up on without triggering?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trackingAreas can be snuck up on without triggering?


  • Subject: Re: trackingAreas can be snuck up on without triggering?
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 20 May 2012 08:04:43 -0700

On May 19, 2012, at 10:10 PM, "email@hidden" <email@hidden> wrote:

> I have a view for which I am adding a tracking area so that I can update the cursor. The view entirely fills my window and is the only view in the window's content view.
>
> The tracking area is being registered thusly:
>
> - (void) awakeFromNib
> {
>    NSTrackingArea* trackingArea = [[NSTrackingArea alloc ] initWithRect:[self bounds]
>              options:NSTrackingCursorUpdate|NSTrackingActiveInActiveApp
>              owner:self
>              userInfo:nil];
>    [self addTrackingArea:trackingArea];
> }
>
> and I have defined in my view:
>
> - (void) cursorUpdate:(NSEvent *)event
> {
>    NSLog(@"cursorUpdate: %@", [NSDate date]);
>    [[NSCursor openHandCursor] set];
> }

Have you implemented -updateTrackingAreas?

--Kyle Sluder

_______________________________________________

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: trackingAreas can be snuck up on without triggering?
      • From: "email@hidden" <email@hidden>
    • Re: trackingAreas can be snuck up on without triggering?
      • From: Ken Thomases <email@hidden>
References: 
 >trackingAreas can be snuck up on without triggering? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: trackingAreas can be snuck up on without triggering?
  • Next by Date: Re: Views & Staying On Top / Accessing Across Apps
  • Previous by thread: Re: trackingAreas can be snuck up on without triggering?
  • Next by thread: Re: trackingAreas can be snuck up on without triggering?
  • Index(es):
    • Date
    • Thread