Hi Folks,
I have a PopupButton on my preferences window that's populated from a custom .plist. The items are entered in properly sorted order but when I pull them out, it looks like this:
50 dpi
450 dpi
150 dpi
1200 dpi
75 dpi
100 dpi
200 dpi
300 dpi
600 dpi
2400 dpi
. . . which is just about random as far as I can tell. Now, I don't want to sort the list with an alpha sort because it'd come out like this:
100 dpi
1200 dpi
150 dpi
200 dpi
2400 dpi
300 dpi
450 dpi
50 dpi
75 dpi
600 dpi
I'm pretty sure there's no "natural sort" mechanism built into Objective-C (which is why I pine for PHP at times like this). Is there any way to tell it to just leave it the heck alone?
Thanks,
-- Mark
I have a PopupButton on my preferences window that's populated from a custom .plist. The items are entered in properly sorted order but when I pull them out, it looks like this:
50 dpi
450 dpi
150 dpi
1200 dpi
75 dpi
100 dpi
200 dpi
300 dpi
600 dpi
2400 dpi
. . . which is just about random as far as I can tell. Now, I don't want to sort the list with an alpha sort because it'd come out like this:
100 dpi
1200 dpi
150 dpi
200 dpi
2400 dpi
300 dpi
450 dpi
50 dpi
75 dpi
600 dpi
I'm pretty sure there's no "natural sort" mechanism built into Objective-C (which is why I pine for PHP at times like this). Is there any way to tell it to just leave it the heck alone?
Thanks,
-- Mark