FROM : Keary Suska
DATE : Thu Mar 13 17:22:28 2008
on 3/13/08 9:52 AM, <email_removed> 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"
DATE : Thu Mar 13 17:22:28 2008
on 3/13/08 9:52 AM, <email_removed> 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"
| Related mails | Author | Date |
|---|---|---|
| Daniel Child | Mar 13, 16:52 | |
| Jens Alfke | Mar 13, 17:12 | |
| Keary Suska | Mar 13, 17:22 | |
| Daniel Child | Mar 13, 21:42 | |
| Ben Trumbull | Mar 13, 22:00 | |
| Jens Alfke | Mar 13, 23:24 | |
| Ben Trumbull | Mar 14, 02:42 | |
| Daniel Child | Mar 14, 04:34 | |
| Dave Hersey | Mar 14, 05:06 | |
| Nir Soffer | Mar 14, 05:41 | |
| Jens Alfke | Mar 14, 06:00 | |
| Daniel Child | Mar 14, 18:46 | |
| Daniel Child | Mar 14, 18:50 |






Cocoa mail archive

