Re: Getting user's input from an NSOutlineView
Re: Getting user's input from an NSOutlineView
- Subject: Re: Getting user's input from an NSOutlineView
- From: Matt Neuburg <email@hidden>
- Date: Wed, 20 Apr 2005 07:38:09 -0700
On Tue, 19 Apr 2005 21:10:20 -0700, Jerry Krinock <email@hidden> 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@hidden, <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>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden