Newbie: Easy "mouseEntered" Question...
Newbie: Easy "mouseEntered" Question...
- Subject: Newbie: Easy "mouseEntered" Question...
- From: mirco scanarini <email@hidden>
- Date: Sun, 25 Apr 2004 23:07:46 -0700 (PDT)
4/26/2004
Hi!
Easy "mouseEntered" Question: I have a well working
tableView which dataSource is an NSDocument Object.
In this object in the windowControllerDidLoadNib I
have put respectively (to try):
[[aController window] setAcceptsMouseMovedEvents:YES];
OR
[[tableView window] setAcceptsMouseMovedEvents:YES];
In both cases when I move 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.
AND I override
- (BOOL)acceptsFirstResponder {
NSLog(@"accepting");
return YES;
}
AND I override both
- (BOOL)resignFirstResponder;
- (BOOL)becomeFirstResponder;
AND I add
- (void)mouseEntered: (NSEvent *)event {
NSLog(@"mouseMoved");
}
in my NSDocument class, the dataSource of the
tableView, the only evident reaction I get, is that
the tableView from "main window" get dimmed as a
background window. And that's it.
I know about the Responder Chain and I remember the
old rocky eventLoop's switch(event){case mouseMoved:
....}.
Where and how can I get and use the Event Message?
Could you help me understand how to get it working?
Thank you a lot in advance. Mirco
=====
Nice writings. Think I'll reboot now...
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25"
http://photos.yahoo.com/ph/print_splash
_______________________________________________
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.