• 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
A question with the "mouseEntered" method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: [ANN] NDAppleScriptObject update, applescript subroutines
  • Next by Date: Re: xCode 1.2
  • Previous by thread: Re: [ANN] NDAppleScriptObject update, applescript subroutines
  • Next by thread: Clean up when application is force quit.
  • Index(es):
    • Date
    • Thread