• 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
How to do a progress window the "right way"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to do a progress window the "right way"?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: How to do a progress window the "right way"?
      • From: Nicko van Someren <email@hidden>
    • Re: How to do a progress window the "right way"?
      • From: Jiri Volejnik <email@hidden>
    • Re: How to do a progress window the "right way"?
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: Re: Multiple Inheritence (Was: Is _objc_flush_caches_(Class) necessary to swizzle methods?)
  • Next by Date: Re: How to do a progress window the "right way"?
  • Previous by thread: Re: How to draw a rectangle in a NSView
  • Next by thread: Re: How to do a progress window the "right way"?
  • Index(es):
    • Date
    • Thread