FROM : listposter
DATE : Sat Jul 22 17:09:25 2006
HI all,
I have category method added to NSArray that checks to see if its
contents are all equal.
Basically the method just performs isEqual: to each item in the array
comparing it to the first item, and if none return NO, then I return
YES.
Otherwise I return NO.
What I'm wondering is, am I replicating any functionality in cocoa,
that already exists? I'm curious if KVC cant be used to discover if
an array
has all its objects the same value....
I just want to make sure, though I've looked around, I don't want to
maintain code that is already been done by apple...
Thanks
Andre
<email_removed>
DATE : Sat Jul 22 17:09:25 2006
HI all,
I have category method added to NSArray that checks to see if its
contents are all equal.
Basically the method just performs isEqual: to each item in the array
comparing it to the first item, and if none return NO, then I return
YES.
Otherwise I return NO.
What I'm wondering is, am I replicating any functionality in cocoa,
that already exists? I'm curious if KVC cant be used to discover if
an array
has all its objects the same value....
I just want to make sure, though I've looked around, I don't want to
maintain code that is already been done by apple...
Thanks
Andre
<email_removed>
| Related mails | Author | Date |
|---|---|---|
| listposter | Jul 22, 17:09 | |
| Ashley Clark | Jul 22, 19:12 | |
| Andre | Jul 22, 19:29 | |
| Adam R. Maxwell | Jul 22, 19:48 | |
| Andre | Jul 22, 20:08 | |
| patrick machielse | Jul 22, 21:25 | |
| Andre | Jul 23, 00:53 | |
| patrick machielse | Jul 23, 01:07 | |
| Andre | Jul 23, 04:14 | |
| Michael Ash | Jul 23, 05:07 |






Cocoa mail archive

