Re: Stack of NSWindow sheets
Re: Stack of NSWindow sheets
- Subject: Re: Stack of NSWindow sheets
- From: Jerry Krinock <email@hidden>
- Date: Fri, 29 Apr 2011 18:58:20 -0700
On 2011 Apr 26, at 11:55, Oleg Andreev wrote:
> Is there a well-known way (or a library) to keep a stack (or queue) of sheets per window?
I wrote a little class to do that last year:
Attachment:
SSYSheetManager.zip
Description: Zip archive
The entry method in there defaults to display the sheet immediately if there is no sheet already being displayed. However, I use it on any window on which *rare* corner-case error conditions might cause multiple sheets to request display, keeping in mind that this generally increases users' blood pressure. I think of it as a safety valve.
On 2011 Apr 27, at 10:44, Kyle Sluder wrote:
> Concurred. Sheets opening spontaneously feel icky to me.
Yes, Apple documentation says that you should not "cascade" multiple sheets on a window. But later, it was pointed out to me by Matt Neuburg that Apple violates their own recommendation:
http://www.cocoabuilder.com/archive/cocoa/279901-wait-for-sheet-result.html
That thread got severed, though. Here's the beginning of it:
http://www.cocoabuilder.com/archive/cocoa/278685-wait-for-sheet-result.html
_______________________________________________
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