Hey everyone,

I'm working on a project that works a lot with Spotlight, and we're trying to get a list of all the attributes that Spotlight knows about. We found a really nice function called MDSchemaCopyAllAttributes that returns a CFArrayRef of CFStringRefs, each one corresponding to a spotlight attribute in the schema.

The problem is that when we run this program as root (which we have to), MDSchemaCopyAllAttributes seems to consistently be returning nil. Is this normal behavior? If so, how can we get a list of all Spotlight attributes across an entire machine (and not just the user domain)?

Thanks,

Dave DeLong
_______________________________________________

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