Re: Starting a Spotlight search
Re: Starting a Spotlight search
- Subject: Re: Starting a Spotlight search
- From: Vince DeMarco <email@hidden>
- Date: Mon, 19 Sep 2005 10:23:07 -0700
On Sep 17, 2005, at 3:30 PM, Stefan Arentz wrote:
I'm trying to do the same as Safari and standard text fields:
Select some text
Right click
Select "Search in Spotlight"
Is there a public API to do this?
Yes
in MacApplication.h
/*
* HISearchWindowShow()
*
* Summary:
* Sends a message to the System UI server to put up Spotlight UI.
*
* Discussion:
* Brings up "search for string" Spotlight UI. The window is shown
* in the default configuration (Search scope and grouping rules)
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inSearchString:
* A CFString to search for. You may pass NULL to open the search
* window with no initial query string.
*
* inFlags:
* Optional flags. Use kNilOptions for now.
*
* Result:
* An operating system status code.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework
* CarbonLib: not available in CarbonLib 1.x, is available
on Mac OS X version 10.4 and later
* Non-Carbon CFM: not available
*/
extern OSStatus
HISearchWindowShow(
CFStringRef inSearchString, /* can be NULL */
OptionBits inFlags)
AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
S.
_______________________________________________
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