Re: OutlineEdit example (outlineView:heightOfRowByItem:)
Re: OutlineEdit example (outlineView:heightOfRowByItem:)
- Subject: Re: OutlineEdit example (outlineView:heightOfRowByItem:)
- From: Scott Stevenson <email@hidden>
- Date: Mon, 2 May 2005 17:27:31 -0700
On May 2, 2005, at 3:32 PM, Keith Blount wrote: This is driving me nuts now... There must be an easy way to get the value of an object stored at a particular row and column within an outline view that uses NSTreeController and bindings, and I must be missing the obvious...
I ran into something similar to this, but with a different delegate method.
It does seem that the "item" object is rather difficult to work with when the outline view is bound to a Tree Controller. I thought KVC messages would to do the proper thing, but the proxy doesn't seem to like that.
After trying a number of other things, I resorted to just calling -observedObject on the item to get to the thing it points at. This will generate a compiler warning because it's private API (so it could break at any time), but there just doesn't seem to be any other solution. That proxy object is like a brick.
Also, to save you some time in the future -- you might find that you have to implement dummy/empty data source methods to get drag and drop to work with NSTreeController.
- Scott
|
_______________________________________________
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