Re: drawing problem after multiple overlapping sheets
Re: drawing problem after multiple overlapping sheets
- Subject: Re: drawing problem after multiple overlapping sheets
- From: Alex Reynolds <email@hidden>
- Date: Mon, 10 Dec 2001 02:55:16 -0500
Thanks very much! [sheet close] was enough and the window redraws
correctly...
Kind regards,
Alex
On Monday, December 10, 2001, at 02:46 AM, John Hvrnkvist wrote:
On Monday, December 10, 2001, at 08:24 , Alex Reynolds wrote:
Is there any way to force the OpenPanel sheet to close before the
second sheet opens? That is, is that what is causing the redraw
problems I am seeing?
You could try giving the open panel an opportunity to close; something
like this:
- (void) openPanelDidEnd: (NSOpenPanel *)sheet
returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSOKButton) {
NSLog(@"Resource was selected for addition");
// call the second "attributes sheet" method here since
we selected a resource
[self performSelector:@selector(openAttributesSheet)
withObject:nil afterDelay:0.0];
}
else {
NSLog(@"Resource was not added");
}
}
Otherwise, [sheet close] might work.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com
_____________________________
Alex Reynolds
SAS Computing
Department of Biology
University of Pennsylvania
Philadelphia, PA 19104 USA
web:
http://www.bio.upenn.edu/computing/
"Science without conscience is the death of the soul." Peter Abelard