Progess Bar in Popup Window

Discussion in 'Mac Programming' started by EggWhite, Feb 28, 2010.

  1. EggWhite macrumors member

    Joined:
    Aug 28, 2009
    #1
    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.
     
  2. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA
    #2
    You may need to create a custom window and use NSApplication's

    runModalForWindow:

    or

    beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
     
  3. EggWhite thread starter macrumors member

    Joined:
    Aug 28, 2009
    #3
    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.
     

Share This Page