Re: Sorting arrays with strings

2008-03-17 Thread I. Savant
> True, but obsolete. These days (read: 10.3 and later) you can use the > "NSNumericSearch" option, as Malcom suggests. I saw that - I hadn't looked at that part of the documentation in awhile (obviously). I've been thinking that I should take a few weeks to skim all the documents I haven't r

Re: Sorting arrays with strings

2008-03-17 Thread Christopher Nebel
On Mar 15, 2008, at 6:34 AM, I. Savant wrote: is there a way to make an array with objects such as text-12. txt, text-3.txt, text6.txt, text654.txt be sorted like text-3.txt, text-12.txt, text6.txt, text654.txt If you understand what I mean. http://developer.apple.com/qa/qa2004/qa1159.html

Re: Sorting arrays with strings

2008-03-15 Thread mmalc crawford
On Mar 15, 2008, at 6:25 AM, Mr. Gecko wrote: Hello I have a NSArray with all of the files names in a directory that my user specifies with an Open panel and I am needing to sort it in numeric order like -0 to -9 and 0 to 9 each file does have other things in the name for an example the na

Re: Sorting arrays with strings

2008-03-15 Thread I. Savant
is there a way to make an array with objects such as text-12. txt, text-3.txt, text6.txt, text654.txt be sorted like text-3.txt, text-12.txt, text6.txt, text654.txt If you understand what I mean. http://developer.apple.com/qa/qa2004/qa1159.html -- I.S.

Sorting arrays with strings

2008-03-15 Thread Mr. Gecko
Hello I have a NSArray with all of the files names in a directory that my user specifies with an Open panel and I am needing to sort it in numeric order like -0 to -9 and 0 to 9 each file does have other things in the name for an example the name of the files are like text-1254.txt, text657