How to do a progress window the "right way"?
How to do a progress window the "right way"?
- Subject: How to do a progress window the "right way"?
- From: Daniel Tapie <email@hidden>
- Date: Sat, 25 Sep 2004 13:00:54 +0200
Hi,
I'd like to be able to display a progress window (with a cancel button)
for a QuickTime movie export process.
It is apparently a simple challenge, but I'm am running into a few
problems:
- the MovieExport component is NOT thread-safe, so I cannot do the
export from a separate thread
- the only way to update the display and handle events during the
export is through the QT callback mechanism (which works fine and
enables me to call Cocoa routines thanks to an autorelease pool I've
set up.
- I am able to determine the position of the Cancel button and
therefore check if the mouse has been clicked in that rectangle BUT the
problem comes when the user moves the Window because the window frame
is not updated until the MovieExport process finishes. Since Cocoa does
not provide a way to "lock" a window to a specific position, I'm stuck
here...
So, because of all these closed doors, I wondered if there was a
recommended way to provide feedback to the user and allow the user to
cancel these kinds of processes.
Thanks for any pointers you might have,
Daniel Tapie
_______________________________________________
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