[part II of my plea for help]
(3)
- (void) doCalculation {
for (row=1; row <= 10000; row++) { // many rows, therefore
much time
if ([self shouldExit]) break;
// do calculation for each row
}
}
(4)
- (BOOL) shouldExit {
[self pingWorkbook]; // calls –setExcelError
(NSMutableDictionary, with 2nd key)
int NoExcelAppOrNoWorkbookErr = [self itsExcelError];
if (NoExcelAppOrNoWorkbookErr != kNoError) { // kNoError = 0
[self setCalcStatus:NoExcelAppOrNoWorkbookErr];
return YES;
}
CalcStatus theCalcStatus = [self itsCalcStatus]; //
(NSMutableDictionary, 1st key)
if (theCalcStatus == kStopped) {
return YES;
}
else {
return NO;
}
}
(5)
- (void) endBgCalculation/ {
CalcStatus theCalcStatus = [self itsCalcStatus];
if (theCalcStatus == kCalculating) {
// do stuff
}
else {
// do stuff
}
}
John Love
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com