Sheets trouble.... kinda odd.
Sheets trouble.... kinda odd.
- Subject: Sheets trouble.... kinda odd.
- From: Aaron Boothello <email@hidden>
- Date: Fri, 12 Dec 2003 11:57:56 +0800
I'm trying to implement sheets in my App. ive got it working using the following code....
-(IBAction) doSheet:(id)sender
{
[NSApp beginSheet:sheet
modalForWindow:testview
modalDelegate:nil
didEndSelector:nil
contextInfo:nil];
[NSApp runModalForWindow: sheet];
[NSApp endSheet: sheet];
[sheet orderOut:self];
}
and the following call when i finish with the sheet:
[NSApp stopModal];
it would fine....the sheet does exactly what it's supposed to do at the right time. My problem is:
While the App is running... i first goto another app or even the finder. When i get back to the app.... there's the sheet (even though it's not active), it's still drawn on the screen behind the window it was attached to. i cant do anything with the controls on it, it's just there, until i activate the sheet again. whats going on ? and how do i stop this ?
Thanks,
Aaron.
_______________________________________________
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.