Re: Network-based data source for NSOutlineViews
Re: Network-based data source for NSOutlineViews
- Subject: Re: Network-based data source for NSOutlineViews
- From: Frank Midgley <email@hidden>
- Date: Tue, 25 Nov 2003 17:03:26 -0600
On Nov 24, 2003, at 2:29PM, Chris Ridd wrote:
However, I can't think of a good way of avoiding this synchronous
behaviour.
I won't necessarily know how many children a given entry has until I
actually go and read them all, which takes some non-zero time.
NSOutlineView
wants to know the number of children immediately the parent is
expanded.
One option is to display a "Fetching..." message while the query is
underway. Return a child count of 1 and return @"Fetching..." when
asked for the cell's value. Once the query completes you can fill in
your data source and reload that node in the tree.
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
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.