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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to