• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Showing another sheet in openPanelDidEnd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Showing another sheet in openPanelDidEnd


  • Subject: Showing another sheet in openPanelDidEnd
  • From: Kenny Carruthers <email@hidden>
  • Date: Tue, 29 Jul 2008 17:11:32 -0700

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Showing another sheet in openPanelDidEnd
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: private methods and variables
  • Next by Date: Re: private methods and variables
  • Previous by thread: Re: private methods and variables
  • Next by thread: Re: Showing another sheet in openPanelDidEnd
  • Index(es):
    • Date
    • Thread