Re: [Q] how to tell when drawing is done?
Re: [Q] how to tell when drawing is done?
- Subject: Re: [Q] how to tell when drawing is done?
- From: j o a r <email@hidden>
- Date: Wed, 4 Feb 2004 19:34:31 +0100
You go about this problem a bit backwards. Drawing the views are nearly
instantaneous, it's the setup of the data source that takes time. In
other words, you should not look to the solution in the drawing system,
but in the data source.
I assume that you have a method that trigger the setup of the data for
the data source. You could do something like this in that method:
- (void) myDataSetupMethod
{
[self startThreadedProgressIndicator];
// Do all the stuff that takes time
[self stopProgressIndicator];
}
j o a r
On 2004-02-04, at 19.03, Steve Christensen wrote:
>
Is there a way to tell when all subviews of a certain view have
>
completed drawing themselves?
>
>
I have a NSWindowController managing a window that contains a
>
NSTabView that contains NSTableViews as subviews. When I switch to a
>
new tab (usually the first time), it's possible that the data source
>
supplying the table could take a little while to get its data in
>
order. I'd like to display a spinning NSProgressIndicator while all
>
this is going on until the views finish drawing.
>
>
I have no problem starting up the indicator in the tab view's
>
tabView:willSelectTabViewItem: delegate method, but I don't know where
>
to stop it. Ideas?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.