NSScrollView displays an NSTableView based on a custom view (image, checkbox, and text label). When I scroll - I have a lag (error?) With redrawing lines.
Normal: 
Scanned after scrolling: 
The project (and the .xib file) has been upgraded from Xcode 4 to Xcode 5. I think this error appeared after it, but I'm not sure.
Any suggestions for fixing it?
Protocol implementation NSTableViewDataSource, NSTableViewDelegate:
- (NSInteger) numberOfRowsInTableView: (NSTableView *) aTableView { return [arrayOfObjects count]; } - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { CMListItem *currentObject = [arrayOfObjects objectAtIndex: row]; NSString *currentName = [currentObject name]; BOOL currentState = [currentObject state]; NSImage *currentImage = [currentObject getArtwork]; NSString *identifier = [tableColumn identifier]; if ([identifier isEqualToString:@"MainCell"]) { CMTableCellView *cellView = [tableView makeViewWithIdentifier: identifier owner: self]; cellView.textField.stringValue = currentName; cellView.button.state = currentState; cellView.imageView.image = currentImage; return cellView; } return nil; }
NSScrollView not changed. My own view of a table cell is a subclass of NSTableCellView with a few extra outputs.
UPDATE: this thing helped me: set Can Draw Concurrently for all NSTableView in the On state, then put it in the Off state.
source share