diff --git a/AppKit/CPCollectionView.j b/AppKit/CPCollectionView.j index b7ff621d0..cc2e08b99 100644 --- a/AppKit/CPCollectionView.j +++ b/AppKit/CPCollectionView.j @@ -140,6 +140,14 @@ var HORIZONTAL_MARGIN = 2; _CPCollectionViewDropIndicator _dropView; } ++ (Class)_binderClassForBinding:(CPString)aBinding +{ + if (aBinding == CPContentBinding) + return [_CPCollectionViewContentBinder class]; + + return [super _binderClassForBinding:aBinding]; +} + - (id)initWithFrame:(CGRect)aFrame { self = [super initWithFrame:aFrame]; @@ -1586,3 +1594,14 @@ var CPCollectionViewMinItemSizeKey = @"CPCollectionViewMinItemSizeK } @end + +@implementation _CPCollectionViewContentBinder : CPBinder +{ +} + +- (void)setValue:(id)aValue forBinding:(CPString)aBinding +{ + [_source setContent:aValue]; +} + +@end