Dominic,

I haven't done this yet, but need to set this up in the app I'm beginning
to work on.

>From the searches I've done, perhaps the solution is NSMetadataQuery along
with a UTI. Take a look at both the SpotlightFortunes and PhotoSearch
sample code. The only drawback I can think of is that the spotlight search
depends upon whatever is indexed. Therefore, anything not indexed will not
return.

Hope this helps.

Anybody else?

Keep us posted.
Arvin

On 4/7/11 5:51 AM, "Dominic Dauer" <dominic.da...@gmail.com> wrote:

>What sort of files do you want to find? What do you want to do with them?
>I want to find all files which belongs to specific Application. For
>example I want to get all Files which belongs to the Mail.app the result
>should be: ~/Library/Mail, ~Library/Preferences/com.apple.mail.plist, etc.
>
>- DD
>On Mittwoch, 6. April 2011 at 22:33, Dave DeLong wrote:
>> 
>> Both things you tried work just fine, depending on the answers to those
>>questions.
>> 
>> Dave
>> 
>> On Apr 6, 2011, at 1:24 PM, Dominic Dauer wrote:
>> 
>> > Hi,
>> > I would like to know which is the best way to find files in the file
>>system. I tried the metadatasearch provided by the NSMetadateQuery Class
>>and the traditional recursive directory walk.
>> > 
>> > - DD 
>> > _______________________________________________
>> > 
>> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> > 
>> > Please do not post admin requests or moderator comments to the list.
>> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> > 
>> > Help/Unsubscribe/Update your Subscription:
>> > http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
>> > 
>> > This email sent to davedel...@me.com
>> 
>
>_______________________________________________
>
>Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
>Please do not post admin requests or moderator comments to the list.
>Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/cocoa-dev/arvin.bhatnagar%40verizon
>.com
>
>This email sent to arvin.bhatna...@verizon.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to