I have an NSTableView
connected to an NSArrayController
by setting the column values in interface builder to the appropriate keys in the NSArrayController
. I'd like to use a custom sorting order, specifically, compare:options: with NSNumericSearch
. Where can I either change my code to do this, or tell interface builder to use a different comparison selector?
我不确定这是否可以与ArrayController一起使用,但是您可以查看NSTableColumn的-setSortDescriptorPrototype :(将您自己的列传递给代码中的排序描述符)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.