FROM : Ondra Cada
DATE : Sat Nov 16 19:05:56 2002
On Saturday, November 16, 2002, at 12:58 , Max Seelemann wrote:
>> I have a short list with "Name" and "Surname" fields.
>> I want to sort this list by "Surname".
>> How should I build the NSArray?
>> How should I use the NSArray methods?
>
> At this point it is important to know how your Array is build.
> The best would be if you use your own Data-Class.
I would beg to disagree here. Unless there is another, not mentioned
"person" functionality worth an extra class, I'd like to argue that the
best is to use a plain NS(Mutable)Dictionary: it makes for considerably
less code, and thus also less probability of errors and easier maintenance.
---
Ondra Cada
OCSoftware: <email_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 16 19:05:56 2002
On Saturday, November 16, 2002, at 12:58 , Max Seelemann wrote:
>> I have a short list with "Name" and "Surname" fields.
>> I want to sort this list by "Surname".
>> How should I build the NSArray?
>> How should I use the NSArray methods?
>
> At this point it is important to know how your Array is build.
> The best would be if you use your own Data-Class.
I would beg to disagree here. Unless there is another, not mentioned
"person" functionality worth an extra class, I'd like to argue that the
best is to use a plain NS(Mutable)Dictionary: it makes for considerably
less code, and thus also less probability of errors and easier maintenance.
---
Ondra Cada
OCSoftware: <email_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Lorenzo Puleo | Nov 15, 18:11 | |
| Max Seelemann | Nov 16, 12:58 | |
| Ondra Cada | Nov 16, 13:36 | |
| ssudre2 | Nov 16, 14:38 | |
| Ondra Cada | Nov 16, 19:05 | |
| Steve Mills | Nov 16, 20:48 | |
| Chris Hanson | Nov 17, 06:14 | |
| Chris Hanson | Nov 17, 08:46 |






Cocoa mail archive

