Re: stop and wait
Re: stop and wait
- Subject: Re: stop and wait
- From: Mark Davis <email@hidden>
- Date: Sun, 5 Oct 2003 09:44:41 -0300
OK, my fault here for not explaining it a little more.. here is what it
is.
When you go to "File: New" in my application it will do this:
[mainWindow performClose:self];
[self resetVariables];
I want to know how to wait until this performClose method is done so I
can check if the user hit Cancel (in which case they would be canceling
the "newFile" method.
I tried doing a while with the returncode of the "Would you like to
save your changes" sheet but while seems to halt everything up so you
can't click anything in the sheet.
On 5-Oct-03, at 9:31 AM, David Remahl wrote:
On 5 okt 2003, at 14.22, Mark Davis wrote:
I want to know a way to stop and wait in my code until something is
done.
For example, in my action it shows a sheet but I want to wait until
the sheet is closed before I continue.
The sheet will send the message indicated by the selector you passed
it as the didEnd: parameter when it closes. Unless you are using a
modal sheet, in which case your code will automatically hold untill
the user dismisses the sheet.
Take a look at any example that uses a sheet.
/ Rgds, David
_______________________________________________
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.
--
Mark Davis, Realmac Software
http://www.realmacsoftware.com
"To the optimist, the glass is half full. To the pessimist, the glass
is half empty. To the programmer, the glass is twice as big as it needs
to be."
_______________________________________________
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.