• 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
Sheets and hidden apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sheets and hidden apps


  • Subject: Sheets and hidden apps
  • From: John Stiles <email@hidden>
  • Date: Wed, 3 Nov 2004 11:33:10 -0800

My installer app has a sheet that shows progress. It drops down, my app does its work while the progress bar fills up, and then when my app is done it rolls up the sheet.
I've had some end users report that they'll start an installation, hide my application (via cmd+H), come back to it later and the install has completed 100%, but the sheet is still there. I know that my app has asked to hide the sheet because the parent window behind the sheet has been updated :) It works fine if you don't hide the app.
Here's the code in question. Why is this happening? It's occurring in 10.3.5.
PS yes, the variable naming conventions suck a bit; if I redid it today they'd be named differently. Whatever. :)




void InstallerShowProgress()
{
[s_installer performSelectorOnMainThread:@selector(progressSheetShow:) withObject:NULL waitUntilDone:YES];
}


void InstallerHideProgress()
{
[s_installer performSelectorOnMainThread:@selector(progressSheetHide:) withObject:NULL waitUntilDone:YES];
}


- (void) progressSheetShow:(id)object
{
[_window makeKeyAndOrderFront:self]; // sheets act goofy if the parent is minimized
[_progressSheetBar setDoubleValue:0.0];
[_progressSheetStopButton setEnabled:YES];

[NSApp beginSheet:_progressSheet
modalForWindow:_window
modalDelegate:self
didEndSelector:NULL
contextInfo:NULL];
}


- (void) progressSheetHide:(id)object
{
	[NSApp endSheet:_progressSheet returnCode:0];
	[_progressSheet orderOut:self];
}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sheets and hidden apps
      • From: John Stiles <email@hidden>
  • Prev by Date: How to associate a view with Color Panel
  • Next by Date: Re: Internationalization: How to bring the locale in line with the language?
  • Previous by thread: Re: How to associate a view with Color Panel
  • Next by thread: Re: Sheets and hidden apps
  • Index(es):
    • Date
    • Thread