Table bindings without keys (just an array)

I have a method (regex) that returns an array of strings. In order to deduplicate and manage this array of strings, I am then converting the array into an NSCountedSet. This set is bound as the data source for an array controller, which is bound to a table for display.

The problem, of course, is that the set doesn’t have any keys – just strings. Is there a way to set the Model Key Path in the table bindings to just pull the first (and only) item in the array? I can add key/value pairs, but that requires looping through the whole array, which can be very time consuming.

EDIT: When I say “time consuming,” that’s because I’m using AppleScript’s “repeat with i from 0 to (count of regexResults - 1)…”, which is painfully slow on large arrays/lists.

It doesn’t have string either…

Which array?

Are you after just the objects, or just the counts?

I’m just looking for the objects’ string values.

I’m using a counted set to keep track of instances of each value, but they aren’t displayed to the user.

set x to current application's NSCountedSet's alloc()'s initWithArray_({1, 2, 2, 3, 3, 3, 4, 4, 4})
x's allObjects() --> {3, 2, 1, 4}

Hmm… that worked, where sortedArrayUsingDescriptors didn’t. How odd.

Thanks for your help! Much obliged.