• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MDSchemaCopyAllAttributes() returning nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: MDSchemaCopyAllAttributes() returning nil
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Re: Group CGAffineTransform Animations?
  • Next by Date: Re: Group CGAffineTransform Animations?
  • Previous by thread: Re: repeatable random numbers in an object
  • Next by thread: Re: MDSchemaCopyAllAttributes() returning nil
  • Index(es):
    • Date
    • Thread