Re: Display Keys-Values in Spotligh
Re: Display Keys-Values in Spotligh
- Subject: Re: Display Keys-Values in Spotligh
- From: Lorenzo <email@hidden>
- Date: Thu, 12 May 2005 15:54:57 +0200
Hi, thanks,
yes, these keys are in the file schema.xml, seaparated by space. tell me if
this is correct
---------------
<allattrs>
com_myDomain_myApplication_myExtension_objectNames
com_myDomain_myApplication_myExtension_myCustomKey
</allattrs>
<displayattrs>
com_myDomain_myApplication_myExtension_objectNames
com_myDomain_myApplication_myExtension_myCustomKey
</displayattrs>
---------------
Also, mdimport -X returns the following
...
"com_myDomain_myApplication_myExtension_objectNames" = {multivalued = 1;
name = "com_myDomain_myApplication_myExtension_objectNames"; type = 7; };
"com_myDomain_myApplication_myExtension_myCustomKey" = {multivalued = 0;
name = "com_myDomain_myApplication_myExtension_myCustomKey"; type = 7; };
...
kMDItemDurationSeconds = {name = kMDItemDurationSeconds; type = 10; };
...
"com.myDomain.myApplication.myExtension" = {
allattrs = (
"com_myDomain_myApplication_myExtension_objectNames",
"com_myDomain_myApplication_myExtension_myCustomKey",
);
displayattrs = (
"com_myDomain_myApplication_myExtension_objectNames",
"com_myDomain_myApplication_myExtension_myCustomKey",
);
name = "com.myDomain.myApplication.myExtension";
};
What do you think?
Best Regards
--
Lorenzo
email: email@hidden
> From: The Karl Adam <email@hidden>
> Reply-To: The Karl Adam <email@hidden>
> Date: Thu, 12 May 2005 09:26:38 -0400
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: Display Keys-Values in Spotligh
>
> Are these keys in the displayattrs section of your schema.xml file?
> Have you checked that it is supposed to show up with an mdimport -X to
> see the public attributes for your UTI type?
>
> -Karl
>
> On 5/12/05, Lorenzo <email@hidden> wrote:
>> Hi,
>> my importer for Spolight works like a charm on my own application files, but
>> when I click on the icon "i" I can yet see only the standard informations
>> like "Where, Version, Last Opened, Size, Created, Modified". Instead, in
>> case of e.g. MP3 files I can see more info like "Duration".
>> So I would like to see some key-value more too.
>> I have added this lines in the schema.strings file:
>>
>> "com_myDomain_myApplication_myExtension_objectNames" = "Object names";
>> "kMDItemDurationSeconds" = "Duration";
>>
>> The first key is my custom key, and the second key is a standard key.
>> Spotlight can quite find those files searching for those values in those
>> keys, but I cannot see the values nor labels.
>> I rebuilt the software, put it within the /Application folder, re-login many
>> times, save new files... but nothing.
>>
>> Do you know what I miss?
>>
>> 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