• 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: Double-clicking NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

--


References: 
 >NSToolBar Implementation (From: Michael Emfinger <email@hidden>)
 >Double-clicking NSOutlineView (From: Paul Mix <email@hidden>)

  • Prev by Date: UserDefaults and domain names
  • Next by Date: Re: UserDefaults and domain names
  • Previous by thread: Double-clicking NSOutlineView
  • Next by thread: Re: NSToolBar Implementation
  • Index(es):
    • Date
    • Thread