• 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: Drag-n-Drop to NSButtonCells in a NSMatrix?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: RFC: Allocating via a protocol/interface
  • Next by Date: Re: When performing privileged operations...
  • Previous by thread: Drag-n-Drop to NSButtonCells in a NSMatrix?
  • Next by thread: Programatically adding/removing menu items
  • Index(es):
    • Date
    • Thread