The phantom sheet
The phantom sheet
- Subject: The phantom sheet
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 17 Apr 2003 14:05:35 -0700
I've recently run into a weird problem with a sheet, and I was
wondering if anyone had seen this before...
1. The application is a document based application with a preferences
window. I'm using OmniAppKit's OAPreferenceController object to
generate a Mail.app-style preference panel. So far, so good.
2. One of the preference panes runs a sheet. The sheet is started the
usual way, -beginSheet:modalForWindow:etc.
3. In the sheetDidEnd: selector, the sheet is closed by calling [sheet
orderOut:self] where "self" is the preference pane controller object.
Now, when I run the app, open the preferences, bring up the sheet, and
then close it and close the preferences window, when some other
application is activated and my application is re-activated by clicking
on its Dock icon, the sheet mysteriously reappears on the screen. Its
backing window, the preferences window, is not open. The sheet does not
accept any keyboard or mouse events; it just sits there doing nothing
but taking up space. If I open the preferences window again and do
something that will bring down the sheet, then the phantom sheet
disappears and doesn't return.
If I substitute calling [sheet close] in #3 above, it doesn't make a
difference.
Has anyone seen anything like this before? How do I prevent this from
happening? TIA...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
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.