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

Re: Display Keys-Values in Spotligh


  • Subject: Re: Display Keys-Values in Spotligh
  • From: Vince DeMarco <email@hidden>
  • Date: Fri, 13 May 2005 13:31:44 -0700

do an mdls on your file whats the output??

Vince

On May 13, 2005, at 3:38 AM, Lorenzo wrote:

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


_______________________________________________ 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: Lorenzo <email@hidden>
References: 
 >Display Keys-Values in Spotligh (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: CoreData & NSTreeController question
  • Next by Date: Re: CoreData & NSTreeController question
  • Previous by thread: Display Keys-Values in Spotligh
  • Next by thread: Re: Display Keys-Values in Spotligh
  • Index(es):
    • Date
    • Thread