Re: NSOutlineView and datasource
Re: NSOutlineView and datasource
- Subject: Re: NSOutlineView and datasource
- From: Matt Neuburg <email@hidden>
- Date: Sat, 18 May 2002 13:58:46 -0700
On Sat, 18 May 2002 21:47:37 +0200, Rob In der Maur <email@hidden> said:
>
The NSOutlineView is somewhat failing on. If I understand correctly, it
>
works pretty much the same as the NSTableView although you have to
>
implement a different set of required methods for the datasource. I've
>
basically followed the NSTableView tutorial from Aaron Hillegass' book
>
but changed it to an NSOutlineView.
>
I would expect that if you set up the connections properly, which I did
>
(I checked it about 10 times), whenever the outline view needs to paint
>
itself, it will invoke the four required method implementation. However,
>
the only one I see (from the NSLog statements I put in each of the
>
required method implementation) is numberOfChildrenOfItem. It seems like
>
the other three are not called at all. How to fix this, or is this a
>
bug....
The datasource is not asked any extraneous questions. The first question
the datasource is asked is how many top-level items the outline has (these
items are the "children of nil"). If the answer is zero or nonsense, then
there's no point asking any of the other questions, so they don't get
asked. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.