I swear I've seen this in some open source code – maybe Adium?
On 26 Apr 2011, at 19:55, Oleg Andreev wrote:
> Hello,
>
> Is there a well-known way (or a library) to keep a stack (or queue) of sheets
> per window?
>
> I'm a developer of Gitbox - a git repository manager. It keeps several repos
> opened and periodically updates them. If some repos require authentication, a
> modal dialog pops up. I'd like to clean up these dialogs by attaching them as
> sheets to the main window. But since NSApp does not manage any form of stack
> or queue of sheets, I need to take care of it myself: that is maintaining a
> queue of windows to be displayed as sheets and displaying next sheet when the
> previous one was dismissed.
>
> Something like:
>
> [mainWindowController queueSheet:aWindow completionHandler:^(NSInteger
> returnCode){
> ...
> }];
>
>
> So the questions are:
>
> 1. Is there a code already doing that? If not, then I'll just write it myself.
> 2. Is it a good way to solve the problem? Maybe I miss some subtle issues
> with AppKit or user experience.
>
>
> Thanks,
> Oleg.
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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/cocoadev%40mikeabdullah.net
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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]