Re: Spotlight enabling of Preference Panel
Re: Spotlight enabling of Preference Panel
- Subject: Re: Spotlight enabling of Preference Panel
- From: Andy Matuschak <email@hidden>
- Date: Thu, 25 Aug 2005 22:49:35 -0500
I don't believe there's any documentation on this, but a quick look
at some of Apple's preference panes made it seem like you'd need to
do a couple things. First, create a .searchTerms file for each of
your localized directories (English.lproj, etc.)
This file is a plist containing a number of dictionaries, which
contain a single array with the key "localizableStrings". This array
contains a number of dictionaries, each with two keys: index (the
value of which is the search terms separated by commas) and title,
the resulting query title. Here's a sample .plist structure:
Root
familyControlsPref (dictionary)
localizableStrings (array) =
0 (dictionary)
index (string) = "permission, prevent, control"
title (string) = "Restrict users"
1 (dictionary)
index (string) = "chat, instant, messaging"
title (string) = "Limit iChat access"
...
Then add to your preference pane's info.plist the key
NSPrefPaneSearchParameters with the parameter of your .searchTerms
filename minus the extension. That is, if you named your plist
something.searchTerms, the value should be something.
Keep in mind that I've not actually tried any of this: it just seems
to be the way the system works from my observations of Apple's pref
panes. I hope this helps.
- Andy Matuschak
On Aug 25, 2005, at 10:11 PM, Andrei Tchijov wrote:
Could someone please point me to an document/example which will
explain how to add spotlight search terms to Preference Panel?
Thanks,
Andrei Tchijov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40andymatuschak.org
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