Using Sheets without 'runModal'
Using Sheets without 'runModal'
- Subject: Using Sheets without 'runModal'
- From: Krevnik <email@hidden>
- Date: Tue, 25 Feb 2003 22:36:40 -0800
I am in the process of writing a rather involved app, which uses sheets
for a couple of status feedback things. (Progress of a CD Burn/Erase
for example)
However, I fire this thing using certain code, but NEED to execute code
later, and in general... not lock up my code. Without duplicating
MASSIVE amounts of code and making it much more complex, I decided just
not to run the modal loop. This works just fine if the app remains in
the foreground... but if I move it to the background to use iChat or
the like, the window disappears, and the sheet moves behind it, but
doesn't disappear.
To give an idea of what I am attempting to do, here is a flow for an
erase:
Display Sheet
Check if Media is present:
Yes - Move on
No - Setup a media notifier, and return.
Check if Media is erasable:
Yes - Move on
No - Setup a media notifier, and return.
Setup an erase notifier, start the erase and return.
.... The media notifier will check the media, update the sheet if the
media doesn't work, and then start the erase once it gets what it
wants: a CD-RW. The erase notifier just keeps track of the erase, and
once complete, sends the sheet back.
Is there a different flow I can follow that will still lead to the same
behavior, and allow me to use runModal to eliminate this glitch?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.