• 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: Outline View Loading Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outline View Loading Data


  • Subject: Re: Outline View Loading Data
  • From: Kay Roepke <email@hidden>
  • Date: Sat, 6 Nov 2004 18:53:01 +0100


On 6. Nov 2004, at 12:24 Uhr, Kishore wrote:

Here I'm displaying a bar on a custom view depending on the data present at a row in the Outline View.

Is that some kind of master/detail view? I.e. are you displaying the bars in your custom view only for
the selected row in the outline view or are you displaying bars for all rows present in the outline view?
I assume the latter.


The bars will have links connected to each other. When ever a row is added (nothing but a task) I'm preparing a smallView(bar) for the new task and I'm displaying that on the Custom View. Here the problem is when ever a task is added I've to update the Links already present on my View and I've to adjust the smallviews present on the Custom View (Task may be added in between).

Why couldn't you observe (using KVO or manually) the array in which the tasks are stored? Whenever you observe a change
you add/remove a bar from you custom view and redisplay.


I want to update all the Links only once( when all the tasks are loaded).

If you use observation it really doesn't make any difference - just like the outline view
your custom view would get the right information "lazily", i.e. when redrawing...


HTH,

Kay

_______________________________________________
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


References: 
 >Outline View Loading Data (From: Kishore <email@hidden>)

  • Prev by Date: Hiring a coder to squash a bug?
  • Next by Date: Re: Temporary badging on Files and Folders.What is wrong in the code attached?
  • Previous by thread: Outline View Loading Data
  • Next by thread: Temporary badging on Files and Folders.What is wrong in the code attached? - Part 1
  • Index(es):
    • Date
    • Thread