Re: Double-clicking NSOutlineView
Re: Double-clicking NSOutlineView
- Subject: Re: Double-clicking NSOutlineView
- From: Paul Mix <email@hidden>
- Date: Thu, 19 Jul 2001 14:20:12 -0500
Answering my own question:
It began to work after I actually declared the OLV's delegate methods
in the delegate's interface file. I had been under the (apparently
faulty) assumption that delegate methods need not be declared in the
interface file. IIRC, isn't this a coding style _Learning Cocoa_
advocates, so as to easily determine by the interface file what
methods are unique to the class/object?
- Paul
At 1:54 PM -0500 7/19/01, Paul Mix wrote:
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.
--