Re: Drag-n-Drop to NSButtonCells in a NSMatrix?
Re: Drag-n-Drop to NSButtonCells in a NSMatrix?
- Subject: Re: Drag-n-Drop to NSButtonCells in a NSMatrix?
- From: Brian Webster <email@hidden>
- Date: Tue, 2 Jul 2002 09:14:54 -0500
On Tuesday, July 2, 2002, at 05:50 AM, cocoa-dev-
email@hidden wrote:
Is there a way for NSMatrix to determine which NSButtonCell the
mouse is
currently hovering over?
-(void)performDragOperation:(id<NSDraggingInfo>)info
{
NSPoint location = [self convertPoint:[info
draggingLocation] fromView:nil];
int row, column;
NSButtonCell* cell = nil;
if([self getRow:&row column:&column forPoint:location])
cell = [self cellAtRow:row column:column];
//do dragging stuff
}
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.