mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Merge pull request #2223 from Dogild/InstanceCPTableDrawView
Fixed: Several views of _CPTableDrawView created when encoding and decoding a CPTableView
This commit is contained in:
commit
3aaa887d68
1 file changed
+5
@@ -6025,6 +6025,11 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey",
|
||||
{
|
||||
[super encodeWithCoder:aCoder];
|
||||
|
||||
// We do this in order to avoid encoding the _tableDrawView, which
|
||||
// should just automatically be created programmatically as needed.
|
||||
if (_tableDrawView)
|
||||
[_tableDrawView removeFromSuperview];
|
||||
|
||||
[aCoder encodeObject:_dataSource forKey:CPTableViewDataSourceKey];
|
||||
[aCoder encodeObject:_delegate forKey:CPTableViewDelegateKey];
|
||||
|
||||
|
||||
Reference in new issue
Block a user