Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sorting large tables



on 3/13/08 9:52 AM, email@hidden purportedly said:

> Unfortunately, the table is not KVO-compliant so I cannot use
> NSSortDescriptor. And I need to pass the primary and secondary sort
> fields at runtime, so I cannot use sortUsingSelector since it takes
> no parameters.

-sortUsingSelector takes one parameter, which is the object being compared,
and is called on the object comparing. So then you have your A and B for any
standard sort situation.

If you need something further than this, you need to be more specific. You
may also wish to reference a recent discussion on this (or very similar)
topic.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >sorting large tables (From: Daniel Child <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.