MDSchemaCopyAllAttributes() returning nil
MDSchemaCopyAllAttributes() returning nil
- Subject: MDSchemaCopyAllAttributes() returning nil
- From: Dave DeLong <email@hidden>
- Date: Wed, 17 Jun 2009 14:53:30 -0600
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 (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