|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm confused by your response. I'm assuming that last statement is a typo, because it is trying to sort the sort descriptor, but I'm not sure what you intended.Derrick, It is not working because you are sorting array with one object, which is itself an array: NSArray *sda = [NSArray arrayWithObject:sd]; NSArray *ps = [p sortedArrayUsingDescriptors:sda];
Instead you should do: NSArray *ps = [sd sortedArrayUsingDescriptors:sda];
Derrick
Code: #import <Cocoa/Cocoa.h> #import <AddressBook/AddressBook.h>
| References: | |
| >Sorting ABPerson array with NSSortDescriptors (From: Gorazd Krosl <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.