Re: Outline View Loading Data
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