Re: Mouse events inside a cell
Re: Mouse events inside a cell
- Subject: Re: Mouse events inside a cell
- From: Anthony Arthur <email@hidden>
- Date: Mon, 3 Jun 2002 11:41:17 -0400
Are you sure you want the cell object to perform some task, or do you
need another object to respond to the mouse click? It appears a lot of
you out there are getting confused between intercepting mouse clicks,
which typically is rarely needed, and having the mouse click send an
action, as when clicking a button or even a cell.
Anywho, maybe what you really want to do is wire the cell in IB to your
controller object and have it send a message there. Any subclass of
NSActionCell can do this, usually found in a matrix as NSButtonCell, and
you can wire each cell to do the same thing or different.
-b
On Monday, June 3, 2002, at 08:07 AM, Cristian Savu wrote:
Hi,
I'm trying to handle the mouse events inside a cell. Thus, the user
receives some action only if he clicks onto the first half of the cell.
I noticed that NSCell doesn't inherit NSResponder but, for the sake of
trying I've created a custom subclass of NSButtonCell and I've added:
- (void) mouseDown:(NSEvent*) theEvent
{
NSBeep();
}
Anyway, the app never passes this method.
I'm sure that there must be a solution and I couldn't find it.
Can anyone give an advice, please ?
_______________________________________________
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.
_______________________________________________
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.