Re: Updating a progress bar from a code loop
Re: Updating a progress bar from a code loop
- Subject: Re: Updating a progress bar from a code loop
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 10 Jun 2008 21:25:29 +0100
On Tue, Jun 10, 2008 at 11:17 AM, Graham Cox <email@hidden> wrote:
> In this case I can do that... though out of curiosity I wonder if there is a
> way to do this "cooperatively" on the main thread without having to break up
> the loop doing the actual work. For example, in Carbon one can run the event
> loop for a short period or just for one event on each cycle of the loop -
> and this code can live in the progress dialog controller, so it works
> transparently with respect to the loop that drives the progress indicator.
> I'm not sure that approach is considered "good" in this day and age though I
> used it a lot on Mac OS 6/7/8/9. Just wondered if such an approach is
> feasible in Cocoa.
FWIW, I think it's worth getting acquainted with multithreading --
multi-core CPUs are not just the future, they are also the present!
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden