A question with the "mouseEntered" method
A question with the "mouseEntered" method
- Subject: A question with the "mouseEntered" method
- From: mirco scanarini <email@hidden>
- Date: Mon, 26 Apr 2004 23:48:41 -0700 (PDT)
4/27/2004
Hello.
A question with the "mouseEntered" method: I have a
good working tableView. The dataSource is an
NSDocument Object.
In this object I have put:
[[tableView window] setAcceptsMouseMovedEvents:YES];
When I enter with the mouse in the tracking rects
created with:
rectObject = [tableView
frameOfCellAtColumn:columnCount row:rowCount];
[tableView addTrackingRect:rectObject owner:tableView
user
Data:NULL assumeInside:NO]);
(added to a mutableArray and then released), the only
evident reaction I get, is that the tableView from
"main window" get dimmed as a background window.
I have in my NSDocument class, the dataSource of the
tableView, the following methods:
- (BOOL)acceptsFirstResponder {
NSLog(@"accepting");
return YES;
}
- (void)mouseEntered: (NSEvent *)event {
NSLog(@"mouseMoved");
}
I can't get the solution by myself. Even with the
discussions that have been already made (the past
weeks) on this dev-list.
Where can I get and use the Event Message or
alternatively where could I as Newbie ask for hints?
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.