• 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
Mouse Events on NSMatrix and NSButtonCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mouse Events on NSMatrix and NSButtonCells


  • Subject: Mouse Events on NSMatrix and NSButtonCells
  • From: Richard Salvatierra <email@hidden>
  • Date: Mon, 13 Jun 2005 17:13:55 -0400

I want to create a matrix full of buttons that can be reordered:

I have a subclass of NSMatrix with NSButtonCells generated on the fly where I set the Action and Target for each cell.  
When a buttonCell is clicked, the selector method executes properly.  
I want a separate function when the mouse is dragged over the buttonCell.  
I have - (void)mouseDragged:(NSEvent *)event  in my NSmatrix subclass 
but that will only work if I also have - (void)mouseDown: (NSEvent *) event
When the mouseDown is present, the buttonCell action seems to be overridden.

Any suggestions. 
Thanks, 
Rich
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Don't compile on XCode 2.1 (From: Bartosz Smaga <email@hidden>)

  • Prev by Date: predefined __FUNCTION__ and __func__ macros...
  • Next by Date: Re: Drawing the focus ring
  • Previous by thread: Don't compile on XCode 2.1
  • Next by thread: Still learning about NSAutoReleasePool
  • Index(es):
    • Date
    • Thread