From 3cb3bfc008589ca69a56cb360d2e6901dff0d80b Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 6 Jan 2010 14:27:00 -0300 Subject: [PATCH] Fixed: CPArrayController selectionIndexes returned nil initially rather than an empty index set. --- AppKit/CPArrayController.j | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index d4364895e..aa90d0eaf 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -91,6 +91,18 @@ return [CPSet setWithObjects:"selectionIndexes"]; } +- (id)init +{ + self = [super init]; + + if (self) + { + _selectionIndexes = [CPIndexSet indexSet]; + } + + return self; +} + -(void)prepareContent { [self _setContentArray:[[self newObject]]];