• 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
Newbie: Easy "mouseEntered" Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
userData: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.


  • Prev by Date: NSColor with alpha problem
  • Next by Date: Re: NSColor with alpha problem
  • Previous by thread: Re: NSColor with alpha problem
  • Next by thread: custom alert panel
  • Index(es):
    • Date
    • Thread