From ee64c5d832c91cdbbc85cf5709b254474f0ad27c Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Mon, 27 Sep 2010 17:56:48 -0400 Subject: [PATCH] Proper decoding of delegate and datasource for the tableview. --- AppKit/CPTableView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 41930673a..1ed78a316 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -3576,8 +3576,8 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey", if (_cornerView) [_cornerView setHidden:NO]; - _dataSource = [aCoder decodeObjectForKey:CPTableViewDataSourceKey]; - _delegate = [aCoder decodeObjectForKey:CPTableViewDelegateKey]; + [self setDataSource:[aCoder decodeObjectForKey:CPTableViewDataSourceKey]]; + [self setDelegate:[aCoder decodeObjectForKey:CPTableViewDelegateKey]]; [self _init];