Re: Best way to find files
Re: Best way to find files
- Subject: Re: Best way to find files
- From: "Bhatnagar, Arvin" <email@hidden>
- Date: Thu, 07 Apr 2011 07:53:05 -0400
- Acceptlanguage: en-US
- Thread-topic: Best way to find files
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" <email@hidden> 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 (email@hidden)
>> >
>> > 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:
>> >
>> > This email sent to email@hidden
>>
>
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>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:
>.com
>
>This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden