Re: Display Keys-Values in Spotlight
Re: Display Keys-Values in Spotlight
- Subject: Re: Display Keys-Values in Spotlight
- From: Justin Drury <email@hidden>
- Date: Fri, 13 May 2005 08:42:12 -0400
Lorenzo, I am having the same problem as you... Perhaps a limitation of
the spotlight app? In my own application I am able to query and return
my own custom fields.(So I know my schema is correct, it looks just
like yours). It would be nice if there was perhaps another set of
attributes that would allow us to specify in our importer which fields
should be visible inside the spotlight app. No doubt an enterprising
developer will make their own Spotlight type application soon
enough...Just adding my voice...
Justin
Message: 2
Date: Thu, 12 May 2005 15:54:57 +0200
From: Lorenzo <email@hidden>
Subject: Re: Display Keys-Values in Spotligh
To: The Karl Adam <email@hidden>
Cc: email@hidden
Message-ID: <BEA92CD1.5203%email@hidden>
Content-Type: text/plain; charset="US-ASCII"
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:
email@hidden
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