Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
- Subject: Re: How do you know when a modal operation has finished (in terms of Obj-C code) ?
- From: Sherm Pendley <email@hidden>
- Date: Wed, 14 Feb 2007 11:16:28 -0500
On Feb 14, 2007, at 10:56 AM, email@hidden wrote:
my problem is the following : I should like a certain instruction
(the
last line
"[myView restoreToNormal];" in the code below) to be executed
immediately
after a modal
operation (the print operation) has finished.
The docs for the method you're calling are very clear about how to do
this. Like most modal operations, the method you're calling takes a
delegate and selector arguments; the selector will be sent to the
delegate when the modal operation is complete.
// Run operation, which shows the Print panel if showPanels was
YES
[self runModalPrintOperation:op
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
Don't do this immediately after calling the above - do it in the
method you supplied as the didRunSelector.
[myView restoreToNormal];
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden