• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Network-based data source for NSOutlineViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Network-based data source for NSOutlineViews
      • From: Chris Ridd <email@hidden>
References: 
 >Network-based data source for NSOutlineViews (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: Stupid question: Flood Fill
  • Next by Date: Re: Doc-based app, text fields, and losing focus
  • Previous by thread: Network-based data source for NSOutlineViews
  • Next by thread: Re: Network-based data source for NSOutlineViews
  • Index(es):
    • Date
    • Thread