Sorting NSTableColumn contents

Posted by Yahoo on Stack Overflow See other posts from Stack Overflow or by Yahoo
Published on 2010-03-07T23:38:00Z Indexed on 2010/03/08 0:01 UTC
Read the original article Hit count: 191

Hey,

I have a problem with sorting NSTableColumn contents. In my NSTableView there are three columns: File, Size, Path. The contents are stored in NSMutableArray. Each object in this array is a NSDictionary containing three keys: file, size and path - value for each is a NSString.

In Interface Builder, in each Table Column's attributes I can choose sorting options: Selector: IB entered "compare:" which I think is ok, because I compare NSStrings. Sort Key - and that's the problem I think - I don't know what to enter here.

Any clues? If you've got questions about my code, please ask.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about nstablecolumn