Mailing Lists: Apple Mailing Lists

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

Re: Double-clicking NSOutlineView



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.

--


References: 
 >NSToolBar Implementation (From: Michael Emfinger <email@hidden>)
 >Double-clicking NSOutlineView (From: Paul Mix <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.