• 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
Display Keys-Values in Spotligh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display Keys-Values in Spotligh


  • Subject: Display Keys-Values in Spotligh
  • From: Lorenzo <email@hidden>
  • Date: Fri, 13 May 2005 12:38:13 +0200

Even if Spotlight can find my files searching within all of the keys,
I cannot yet visualize those keys-values pairs in the Spotlight info panel.
I have made the following. Please what did I forget to do?

In the schema.xml file I wrote
--------------------------------
<attributes>
    <attribute name="com_mydomain_myApp_myExt_objNames" multivalued="true"
type="CFString"/>
    <attribute name="com_mydomain_myApp_myExt_myString" multivalued="false"
type="CFString"/>
</attributes>

<allattrs>
    kMDItemDurationSeconds com_mydomain_myApp_myExt_objNames
com_mydomain_myApp_ext_myString
</allattrs>

<displayattrs>
    kMDItemDurationSeconds com_mydomain_myApp_myExt_objNames
com_mydomain_myApp_ext_myString
</displayattrs>


In the schema.strings I wrote
--------------------------------
"com_mydomain_myApp_myExt_objNames" = "Object names";
"com_mydomain_myApp_myExt_objNames.Description" = "The names of the
objects";
"com_mydomain_myApp_myExt_myString" = "Object names";
"com_mydomain_myApp_myExt_myString.Description" = "A custom string";
"kMDItemDurationSeconds" = "Duration";


The mdimport -X command returns:
--------------------------------
Attributes = {
    ...
    "com_mydomain_myApp_myExt_objNames" = {multivalued = 1; name =
"com_mydomain_myApp_myExt_objNames"; type = 7; };
    "com_mydomain_myApp_myExt_myString" = {multivalued = 0; name =
"com_mydomain_myApp_myExt_myString"; type = 7; };
    ...
    "com.mydomain.myApp.myExt" = {
         allattrs = (
            kMDItemDurationSeconds,
            "com_mydomain_myApp_myExt_objNames",
            "com_mydomain_myApp_myExt_myString",
        );
        displayattrs = (
            kMDItemDurationSeconds,
            "com_mydomain_myApp_myExt_objNames",
            "com_kinemac_kinemac_kmc_text2D",
         );
        name = "com.mydomain.myApp.myExt";
     };


--------------------------------
I checked my schema.xml file with mdcheckschema
command and it returns "succesfully parsed".
I put my application in the /Applications folder,
I re-logged-in, I re-booted, I created new files with my application.
Spotlight can quite find my files searching within all of the keys, but when
I click on the "i" icon to see information about my file I cannot see those
keys-values-pairs. Why?


Best Regards
--
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Display Keys-Values in Spotligh
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: long Tigers
  • Next by Date: [OT] Re: Is NSMethodSignature compiler-dependent?
  • Previous by thread: Re: Display Keys-Values in Spotligh
  • Next by thread: Re: Display Keys-Values in Spotligh
  • Index(es):
    • Date
    • Thread