Skip navigation.
 
mlRe: Getting user's input from an NSOutlineView
FROM : Matt Neuburg
DATE : Wed Apr 20 16:38:09 2005

On Tue, 19 Apr 2005 21:10:20 -0700, Jerry Krinock <<email_removed>> said:
>I did what I thought was the hard part, displaying my NSDictionary/tree in
>an NSOutlineView, by reading Apple docs, Cocoabuilder and Hilleglass.  It
>all displays very cool.  This outline displays ordinary NSStrings.
>
>But now I'm stumped on the easy part, which is to get user's editing input
>out of the NSOutlineView.
>
>Since NSOutlineView is a subclass of NSTableView, I tried to implement the
>same delegate method which works for NSTableViews,
>tableView:setObjectValue:forTableColumn:row:.  But this method never gets
>called, and I never even get asked if I respond to it.  No good.


The relationship between NSOutlineView and NSTableView *is* surprising, no
doubt about it. NSOutlineView is said to be a subclass of NSTableView, but
it does not inherit all of NSTableView, and there is no way to learn
precisely what it does not inherit.

That said, there is really no excuse for your not RTFM:

<...documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Protocols/NSOu
tlineViewDataSource.html>

This tells you about

  outlineView:setObjectValue:forTableColumn:byItem:

m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>

Related mailsAuthorDate
mlGetting user's input from an NSOutlineView Jerry Krinock Apr 20, 06:10
mlRe: Getting user's input from an NSOutlineView Jerry Krinock Apr 20, 14:08
mlRe: Getting user's input from an NSOutlineView Johnny Deadman Apr 20, 14:35
mlRe: Getting user's input from an NSOutlineView Matt Neuburg Apr 20, 16:38