mouse events
mouse events
- Subject: mouse events
- From: mirco scanarini <email@hidden>
- Date: Thu, 29 Apr 2004 01:10:13 -0700 (PDT)
4/29/2004
Hello list.
I have a good working tableView. The dataSource is an
NSDocument Object.
My question is where to intercept with the method
mouseEntered the event message.
In my NSDocument Object I have the following methods:
[[tableView window] setAcceptsMouseMovedEvents:YES];
----------
rectObject = [tableView
frameOfCellAtColumn:columnCount row:rowCount];
----------
[tableView addTrackingRect:rectObject owner:tableView
user
Data:NULL assumeInside:NO]);
----------
- (BOOL)acceptsFirstResponder {
return YES;
}
----------
- (void)mouseEntered: (NSEvent *)event {
NSLog(@"It works!");
}
In that position mouseEntered does not work.
The only reaction I get entering the mouse in a
tracking-rectangle, is that the tableView window from
main window goes to background.
Thank you. Mirco
=====
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.