• 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
mouse events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: (no subject)
  • Next by Date: CamelBones
  • Previous by thread: Re: Location from System Preferences
  • Next by thread: Re: mouse events
  • Index(es):
    • Date
    • Thread