Re: Newbie: Easy "mouseEntered" Question...
Re: Newbie: Easy "mouseEntered" Question...
- Subject: Re: Newbie: Easy "mouseEntered" Question...
- From: mirco scanarini <email@hidden>
- Date: Mon, 3 May 2004 11:55:31 -0700 (PDT)
Hi Pandaa
Yes, I know that NSRect is a struct (the name I used
is not appropriate).
I thank you and I thank Matt Neuburg wo gave me the
indication few days ago that I was looking in the
correct direction. I got the problem solved and it was
easy.
I subclassed NSResponder in my app and in the
NSDocument subclass (the dataSource) I used the
methods:
- (NSResponder *)nextResponder
- (void)setNextResponder:(NSResponder *)aResponder
to get my NSResponder subclass as the nextResponder.
Than I implemented the subclass with the methods
mouseEntered and mouseExited and now they are working
properly.
But i think what I did is somehow an indirect
approach. As you tell me, I should implement a
tableView subclass. I already did it with no result.
But I'll do it again maybe better.
What am I trying to do?
When I put the mouse on a row in the tableView with
the beginning of a message in it, I let show the
pointed message (whole) in a window. (Actually an
NSAlert, in the next a document window).
Alternatively do you think it be possible to let
manage say a 10 rows long text directly in the
textView? Or opening a window with the message (with
the methods provided from the NSTableView alone?).
About mouseMoved: I just wrote in my NSResponder
subclass the method
- (void)mouseMoved: (NSEvent *)event;
It works but is not bounded with the trackingRects.
More I can't say, I don't know what is polling.
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.