• 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: Getting mouse events in view placed in NSTableRowView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting mouse events in view placed in NSTableRowView


  • Subject: Re: Getting mouse events in view placed in NSTableRowView
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 23 Nov 2012 18:03:32 -0800

On Nov 23, 2012, at 4:26 PM, email@hidden wrote:

>
> I tried hit test in a point that should be in my custom view, and it returned the NSTableView. I don't understand why the event seems to pass through my custom view and the NSTableRowView.

NSTableView overrides -hitTest: to implement row selection and dragging. So it's not "passing through;" it's being preempted.

Consider subclassing NSTableView and overriding -hitTest: to call -hitTest: on your slider and return it if it returns itself, or return super's value otherwise.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Getting mouse events in view placed in NSTableRowView (From: email@hidden)
 >Re: Getting mouse events in view placed in NSTableRowView (From: Kyle Sluder <email@hidden>)
 >Re: Getting mouse events in view placed in NSTableRowView (From: email@hidden)

  • Prev by Date: Re: NSArrayController KVO question...
  • Next by Date: "Virtual" deletion and NSFetchedResultsController
  • Previous by thread: Re: Getting mouse events in view placed in NSTableRowView
  • Next by thread: "Virtual" deletion and NSFetchedResultsController
  • Index(es):
    • Date
    • Thread