• 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
Ordering out a sheet when its parent is hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ordering out a sheet when its parent is hidden


  • Subject: Ordering out a sheet when its parent is hidden
  • From: John Stiles <email@hidden>
  • Date: Thu, 29 Jan 2004 16:55:47 -0800

I have a sheet attached to my parent window that shows progress of an operation. When the operation is complete, the sheet should vanish on its own. However, I found that end users will minimize the parent window to do other work while the operation is going, and when the end user unminimizes it later, the sheet is still attached (even though it should be gone--I am removing it by calling:

[_progressSheet orderOut:self];
[NSApp endSheet:_progressSheet returnCode:0];

). I did find a workaround--I unminimize the parent window myself right before the aforementioned code:

[_window makeKeyAndOrderFront:self]; // sheets act goofy if the parent is minimized

This works--the sheet does goes away--but this means the parent window will bounce up out of the dock without the end user expecting it... bad human interface. Should I file a bug with Apple? Or am I doing something wrong... ? Should I be waiting for the window to get unminimized and deferring my sheet-hiding until then? The docs don't talk about this, but it could just be a bug in AppKit I guess... most people don't need to order out sheets when the parent window is minimized, after all :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Ordering out a sheet when its parent is hidden
      • From: John Stiles <email@hidden>
References: 
 >init and dealloc (From: Lorenzo <email@hidden>)
 >Re: init and dealloc (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Any new/updated Cocoa books soon?
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Re: init and dealloc
  • Next by thread: Re: Ordering out a sheet when its parent is hidden
  • Index(es):
    • Date
    • Thread