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

Re: mouse events


  • Subject: Re: mouse events
  • From: matt neuburg <email@hidden>
  • Date: Thu, 29 Apr 2004 13:05:45 -0700

On Thu, 29 Apr 2004 01:10:13 -0700 (PDT), mirco scanarini
<email@hidden> said:
>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.

Implement mouseEntered in the responder chain. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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: SCNetworkCheckReachabilityByName
  • Next by Date: Re: [OT] Towers of Hanoi with four pegs
  • Previous by thread: mouse events
  • Next by thread: CamelBones
  • Index(es):
    • Date
    • Thread