NSProgressIndicator disabled on sheet
NSProgressIndicator disabled on sheet
- Subject: NSProgressIndicator disabled on sheet
- From: j o a r <email@hidden>
- Date: Thu, 12 Jul 2001 11:23:06 +0200
Hello,
Probably a simple question, but here it goes...
I put a NSProgressIndicatior on a sheet, something like this:
// Set values for the progress indicator
[mySheet setIndeterminate:NO];
[mySheet setDoubleValue:0.0];
[mySheet setMaxValue:100.0];
// Open a sheet to display the count of remaining items to
parse through
[NSApp beginSheet:mySheet
modalForWindow:[myController valueForKey:@"mainWindow"]
modalDelegate:self
didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
contextInfo:self];
The sheet appears as it should, the progress indicator updates like it
should and all methods seems to find their recievers - BUT - the
progress indicator is disabled, greyed out.
I would assume that it queries the parent window / view to find out if
it should be disabled or not and that my sheet doesn't return the
correct info? Any ideas on how I could work around this?
Regards,
j o a r