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

Getting mouse events in view placed in NSTableRowView


  • Subject: Getting mouse events in view placed in NSTableRowView
  • From: email@hidden
  • Date: Fri, 23 Nov 2012 15:08:43 -0700

Hi,

I'm having a problem with a subclass of NSTableRowView I'm trying to implement. I have custom NSTableCellView that contains a button. When I press the button, I want that row to expand in height. I would like to then place a custom NSView into that new space (think of it as a detail view of the cell that was clicked).

I created an NSTableRowView subclass, but currently have no custom code (except to trap mouse events and immediately call "super" with them). When the button is clicked, I add my custom view as a subview of my custom NSTableRowView, and it appears. The problem is that this custom view does not see any mouse events. As a simple test, I placed a slider control into the view, but I can't move it.

Stepping through the debugger, I see that my NSTableRowView subclass is indeed being used, that it contains no other subviews than all of the NSTableRowView instances for each column plus the one I manually added. I put an NSLog statement in the NSTableRowView's mouseDown method, but no mouse downs are being recorded in the open space created by updating the height of the table. I have called "noteHeightOfRowsWithIndexesChanged" when making these changes.

Where are the mouse clicks going!?? This is driving me batty.

Cheers,
Demitri
_______________________________________________

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

  • Follow-Ups:
    • Re: Getting mouse events in view placed in NSTableRowView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: How to properly clear subordinate arrayControllers in master-detail hierarchy?
  • Next by Date: Re: Tooltip with Custom bg color/image and text color
  • Previous by thread: How to properly clear subordinate arrayControllers in master-detail hierarchy?
  • Next by thread: Re: Getting mouse events in view placed in NSTableRowView
  • Index(es):
    • Date
    • Thread