Permalink
Browse files

Apply changes from 23c4d04 to SPTableContent (#2775)

  • Loading branch information...
dmoagx committed May 14, 2017
1 parent 5c717e0 commit b50d4e9a6f55c26d3fbe33b33d78063ad1e9e9fd
Showing with 12 additions and 0 deletions.
  1. +12 −0 Source/SPTableContent.m
@@ -81,6 +81,7 @@ - (id)_contentValueForTableColumn:(NSUInteger)columnIndex row:(NSUInteger)rowInd
@interface SPTableContent ()

- (BOOL)cancelRowEditing;
- (void)documentWillClose:(NSNotification *)notification;

@end

@@ -292,6 +293,10 @@ - (void)awakeFromNib
selector:@selector(endDocumentTaskForTab:)
name:SPDocumentTaskEndNotification
object:tableDocumentInstance];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(documentWillClose:)
name:SPDocumentWillCloseNotification
object:tableDocumentInstance];
}

#pragma mark -
@@ -4135,6 +4140,13 @@ - (void) endDocumentTaskForTab:(NSNotification *)aNotification
tableRowsSelectable = YES;
}

//this method is called right before the UI objects are deallocated
- (void)documentWillClose:(NSNotification *)notification
{
// if a result load is in progress we must stop the timer or it may try to call invalid IBOutlets
[self clearTableLoadTimer];
}

#pragma mark -
#pragma mark KVO methods

0 comments on commit b50d4e9

Please sign in to comment.