• 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
Stack of NSWindow sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stack of NSWindow sheets


  • Subject: Stack of NSWindow sheets
  • From: Oleg Andreev <email@hidden>
  • Date: Tue, 26 Apr 2011 20:55:31 +0200

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

  • Follow-Ups:
    • Re: Stack of NSWindow sheets
      • From: Mike Abdullah <email@hidden>
    • Re: Stack of NSWindow sheets
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Barcode scanner
  • Next by Date: Re: Stack of NSWindow sheets
  • Previous by thread: Re: Barcode scanner
  • Next by thread: Re: Stack of NSWindow sheets
  • Index(es):
    • Date
    • Thread