Re: Stack of NSWindow sheets
Re: Stack of NSWindow sheets
- Subject: Re: Stack of NSWindow sheets
- From: Mike Abdullah <email@hidden>
- Date: Wed, 27 Apr 2011 15:56:19 +0100
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@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
_______________________________________________
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