On Sat, Aug 30, 2008 at 2:56 AM, Dave Dribin <email@hidden>
wrote:
Is there some benefit to using number values over string constants,
or is it
just stylistic differences?
Using NSStrings (or any other object) will work fine, but comparing
two primitive numbers is a lot faster than comparing to strings.
As long as the pointers point to unique objects (and they remain valid
even in a GC world), you just need to compare their pointer value. So
even with this: