Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double-clicking NSOutlineView



Bit of a mystery here:

I have an NSOutlineView that absolutely refuses to send an action to its delegate when it's double clicked. In the delegate's -awakeFromNib, I call:

[myOutlineView setDoubleAction:@selector(userDoubleClickedOutlineView:)];

myOutlineView is correctly pointing to the OLV within -awakeFromNib (the method also creates a custom column type for the OLV and registers it for drag types). However, the delegate's userDoubleClickedOutlineView: simply doesn't get called on a double-click. Everything else about the two classes seem to be wired correctly, and the delegate implements all other required OLV delegate methods.

Note: the OLV is in the view of a drawer, and the controller acting as the OLV's delegate/data-source inherits directly from NSObject. The same controller object is also the delegate of the drawer itself (if that matters).

I did make sure that none of the OLV columns are editable.

Any suggestions would be appreciated...

TIA,
- Paul M
--


References: 
 >NSToolBar Implementation (From: Michael Emfinger <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.