Does anyone know why any attempts to show a second sheet immediately after an NSOpenPanel has been dismissed causes the parent window to disappear?

        The user flow is as follows:

- Show Import Window
- Show NSOpenPanel via [panel beginSheetForDirectory...]
(Panel is properly displayed)

- User either accepts or cancels the file panel
- My openPanelDidEnd method is properly called with the correct result from the File Panel

- If I now try showing a new sheet, my main Import Window will hide and I'll be left with just my new sheet on the screen.

If I skip the File Panel operation, then my sheet is correctly shown, so that's working properly. Since the File Panel is not completely dismissed inside openPanelDidEnd I wonder if something weird isn't going on with [NSApp beginSheet...] whereby it can't show the new sheet because the File Panel is still being "rolled up" inside openPanelDidEnd. NSApp appears to be smart enough to not let you show to sheets on one window, I get a system beep when trying to do that, but maybe it's confused here because the File Panel has been dismissed but is still be animated while my code executes to show the second sheet. Maybe there's a way to know when the File Panel has been full dismissed?

Thoughts?

Thanks for any help,
Kenny
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to