Re: MDSchemaCopyAllAttributes() returning nil
Re: MDSchemaCopyAllAttributes() returning nil
- Subject: Re: MDSchemaCopyAllAttributes() returning nil
- From: Kyle Sluder <email@hidden>
- Date: Thu, 18 Jun 2009 10:58:53 -0700
On Thu, Jun 18, 2009 at 10:03 AM, Dave DeLong<email@hidden> wrote:
> This application *is* the privileged helper process, and it needs to know about all the Spotlight attributes that spotlight has. The problem is that Spotlight doesn't seem to like the root user.
Why is the privileged process asking Spotlight for anything? Try to
factor as much code as possible out of your privileged tool.
In this particular instance, don't forget that Spotlight importers can
live in ~/Library/Spotlight as well as within app bundles in
~/Applications. Any answer that MDSchemaCopyAllAttributes() would
give you when running as root might be incorrect for the user who's
actually the results.
--Kyle Sluder
_______________________________________________
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