Re: Recursive search for files

2011-05-25 Thread ronald b. kopelman
On May 22, 2011, at 11:52 AM, James Merkel wrote: I would like to add a capability to an application to search directories and sub-directories eventually opening all image files (basically using NSDirectoryEnumerator). Obviously, I can't allow the user to start at say the volume level and

Re: Recursive search for files

2011-05-25 Thread James Merkel
On Wed, 25 May 2011 08:52:31 ronald b. kopelman wrote: On May 22, 2011, at 11:52 AM, James Merkel wrote: I would like to add a capability to an application to search directories and sub-directories eventually opening all image files (basically using NSDirectoryEnumerator). Obviously, I can't

Re: Recursive search for files

2011-05-25 Thread Kyle Sluder
On Wed, May 25, 2011 at 7:34 PM, James Merkel jmerk...@mac.com wrote: Security shouldn't be an issue -- this application is for home use only. Unless by home use you mean my own personal home use, then you're taking the wrong tack with respect to security. It is your responsibility to follow

Re: Recursive search for files

2011-05-25 Thread Jens Alfke
On May 25, 2011, at 7:34 PM, James Merkel wrote: Security shouldn't be an issue -- this application is for home use only. Allowing searches only of the home directory might be a reasonable approach. Seems like a bad restriction. People may keep some of their files outside their home

Re: Recursive search for files

2011-05-25 Thread James Merkel
On May 25, 2011, at 8:18 PM, Kyle Sluder wrote: On Wed, May 25, 2011 at 7:34 PM, James Merkel jmerk...@mac.com wrote: Security shouldn't be an issue -- this application is for home use only. Unless by home use you mean my own personal home use, then you're taking the wrong tack with

Re: Recursive search for files

2011-05-25 Thread James Merkel
On May 25, 2011, at 8:27 PM, Jens Alfke wrote: On May 25, 2011, at 7:34 PM, James Merkel wrote: Security shouldn't be an issue -- this application is for home use only. Allowing searches only of the home directory might be a reasonable approach. Seems like a bad restriction. People may

Re: Recursive search for files

2011-05-24 Thread James Merkel
On May 24, 2011, at 5:15 AM, cocoa-dev-requ...@lists.apple.com wrote: James Merkel wrote: I was trying to come up with a way to prevent the user from starting at the wrong place. (Putting up an Alert that says you can't start there). There's a method in the NSFileManager class called

Re: Recursive search for files

2011-05-23 Thread Marcelo Alves
Why not use spotlight (NSMetadataQuery / MDQuery) instead of recursion ? On 23/05/2011, at 00:00, James Merkel wrote: I would like to add a capability to an application to search directories and sub-directories eventually opening all image files (basically using NSDirectoryEnumerator). ::

Re: Recursive search for files

2011-05-23 Thread Greg Guerin
James Merkel wrote: I was trying to come up with a way to prevent the user from starting at the wrong place. (Putting up an Alert that says you can't start there). There's a method in the NSFileManager class called isDeletableFileAtPath. I am thinking that all of those volumes and higher

Recursive search for files

2011-05-22 Thread James Merkel
I would like to add a capability to an application to search directories and sub-directories eventually opening all image files (basically using NSDirectoryEnumerator). Obviously, I can't allow the user to start at say the volume level and do the search. However as far as I can tell, there