ArrayController Out of Bounds
ArrayController Out of Bounds
- Subject: ArrayController Out of Bounds
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 4 Jun 2008 20:18:02 +0700
I have an NSTableView with one column which creates exceptions when
sorted. 10.4.11.
[ tableColumn infoForBinding: @"value" ] -->
NSObservedKeyPath = "arrangedObjects.kMDItemPath";
NSObservedObject = <NSArrayController: 0x355e70>[object class:
NSMetadataItem, number of selected objects: 1];
NSOptions = {
NSAllowsEditingMultipleValuesSelection = 1;
NSAlwaysPresentsApplicationModalAlerts = 0;
NSConditionallySetsEditable = 1;
NSConditionallySetsEnabled = 0;
NSContinuouslyUpdatesValue = 0;
NSCreatesSortDescriptor = 1;
NSMultipleValuesPlaceholder = "Mehrere Werte";
NSNoSelectionPlaceholder = "Nichts ausgew\U00e4hlt";
NSNotApplicablePlaceholder = "Nicht anwendbar";
NSNullPlaceholder = <null>;
NSRaisesForNotApplicableKeys = 1;
NSValidatesImmediately = 0;
NSValueTransformer = <null>;
NSValueTransformerName = <null>;
};
}
[ arrayController infoForBinding: @"contentArray" ] -->
NSObservedKeyPath = "query.results";
NSObservedObject = <NSKVONotifying_SpoDelegate: 0x31dbb0>;
NSOptions =
{
NSAlwaysPresentsApplicationModalAlerts = 0;
NSConditionallySetsEditable = 1;
NSDeletesObjectsOnRemove = 0;
NSHandlesContentAsCompoundValue = 0;
NSMultipleValuesPlaceholder = <null>;
NSNoSelectionPlaceholder = <null>;
NSNotApplicablePlaceholder = <null>;
NSNullPlaceholder = <null>;
NSRaisesForNotApplicableKeys = 1;
NSSelectsAllWhenSettingContent = 0;
NSValidatesImmediately = 0;
NSValueTransformer = <null>;
NSValueTransformerName = <null>;
};
query is an NSMetadataQuery.
When this table contains some rows and I click on the table column
header I always get:
*** -[NSCFArray objectAtIndex:]: index (-1) beyond bounds (5)
where 5 is the correct number of rows displayed.
What am I doing wrong?
This is on Tiger 10.4.11
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden