Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

EggWhite

macrumors member
Original poster
Aug 28, 2009
40
0
I am in the process of creating an app with will take quite a while to process so what I wanted to have happen is a modal popup will come up which will have a progress bar, a label, and a cancel button. My code will then update the progress bar and label with the status of the job.

I already have my app spawning off a thread once the button is pressed and the process continues in the background. I just have no idea how to create the modal popup I want. I am looking for something similar to how iMovie blocks the interface as its loading videos from your camera.
 
You may need to create a custom window and use NSApplication's

runModalForWindow:

or

beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
 
Thanks a lot I was able to get it working last night. I knew what I wanted I just had no idea what it was called "Sheets". So all my searches came up with nothing.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.