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 12:55:05 -0500
On Feb 14, 2007, at 12:44 PM, email@hidden wrote:
[self runModalPrintOperation:op
delegate:self
didRunSelector:@selector
(documentDidRunModalPrintOperation:)
contextInfo:NULL];
[myView restoreToNormal];
}
- (void)documentDidRunModalPrintOperation:(NSDocument *)document
success:(BOOL)success
contextInfo:(void *)contextInfo
{
[myView restoreToNormal];
}
I get an error message saying that the selector
documentDidRunModalPrintOperation: is
not recognized, even though I did declare that delegate method in the
header file. What's wrong
with the code above ?
You passed the wrong selector. The selector for the method you
implemented is not documentDidRunModalPrintOperation:, it's
documentDidRunModalPrintOperation:success:contextInfo:.
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