On May 19, 2012, at 10:10 PM, "[email protected]" <[email protected]> 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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]