Questions tagged [spotlight]

Spotlight on Mac OS X is a fast desktop search technology that allows users to organize and search for files based on metadata. Spotlight is extensible, allowing developers to provide metadata importers for their application’s documents.

259 questions
0
votes
2 answers

how to remove thumbnailData in CSSearchableItemAttributeSet

My indexed data don't have a photo, so I don't want to show a photo, I only want the title and description: I have tried to set: attributes.thumbnailData = nil But it stil shows this blank image. static func setupSearchableContentForSpotlight() { …
FarouK
  • 740
  • 6
  • 17
0
votes
1 answer

Can data saved on the iPhone by an App using writeToFile be included in the results of a Spotlight search?

An application I am designing will be used to sync data between the iPhone and a database. I am writing the data on the iPhone using 'writeToFile' and similar methods, and syncing it periodically with the database. Is there any way I can make this…
Andrew
  • 466
  • 2
  • 7
  • 22
0
votes
0 answers

Black border artifact in spotlight (OpenGL)

I am try to implement a basic spotlight using OpenGL and Fragment Shader. However, I notice that there is a distinct black border artifact at the periphery of the spotlight. I expect to see a hard cut-off between the color inside the spotlight…
0
votes
0 answers

Creating temp files in Spotlight Module / MDimporter

There is an older thread here about creating temp files when developing Spotlight plugins using XCode. In brief, in the GetMetadataForFile call, trying to create temp files/folders fails due to Spotlight sandboxing. { NSString* tempDir =…
dxdc
  • 435
  • 3
  • 8
0
votes
1 answer

Spotlight in React Js

I created the spotlight using react js. I am not able to click the objects below it. I tried to apply pointerEvents: 'none' to the styling but that doesn't move the spotlight. How should I make the objects below clickable? Here is the code:- import…
Tech
  • 11
  • 3
0
votes
1 answer

Why won't my falloff work for this dot product based spotlight?

I made a spotlight that Projects 3d models onto a render target from each light POV to simulate shadows Cuts a circle out of the square of light that has been projected onto the render target as a result of the light frustum, then only lights up…
Dude
  • 29
  • 6
0
votes
1 answer

NSMetadataQueryDidFinishGatheringNotification never called

Trying to run the following code: #import @interface FileQuery : NSObject @end @interface FileQuery() @property (nonatomic, strong) NSMetadataQuery *query; @property (nonatomic, strong) NSMutableArray
YanivH
  • 539
  • 4
  • 18
0
votes
1 answer

Can one Spotlight importer call another?

I have a macOS application that stores text as an HTML file inside a package (directory bundle). The system Rich Text importer already knows how to extract text from HTML files. Is there a way to write an importer for my application that calls the…
Alan Snyder
  • 408
  • 2
  • 13
0
votes
1 answer

How to pipe mdfind to grep with a pattern and then cp

I have been trying to come up with a mdfind to locate certain files. I am not using find because it takes too long to search across a windows drive and I am on a Mac. I have indexed using mdutil and now simply want to search for files with the…
0
votes
0 answers

Disable Core Spotlight feature in swift?

Is there any way to disable my app's spotlight search feature? I have a pro version of my app and I want spotlight searchability to be a pro feature. Is there any way to disable my app's spotlight items from showing up programmatically?
0
votes
2 answers

Spotlight IOS linked to API

I'm developping a mobile application for ios device and i have an issue! My app contain a search system and i want to expose my system into spotlight in IOS. I had found some informations but it's to put some selected item ! It's not dynamic ! Our…
Clowning
  • 178
  • 4
  • 16
0
votes
2 answers

NSMetaDataQuery, set the setSearchScope paths to be recursive?

In Objective-C, I am setting up an NSMetaDataQuery and setting the setSearchScope: for the query to search a specific users Documents folder. The search works but doesn't recurse down the directory tree, only searching in the Documents folder. I've…
Wilersh
  • 85
  • 1
  • 5
0
votes
2 answers

angular2: how to control the whole app with keyboard only?

What approach would you recommend to control the whole app with keyboard only? I found Spotlight lib, but it depends on enyojs which seems to have its own component model and overall enyojs seems to be an overkill. So far I'm listening on keydown…
Petr Marek
  • 1,381
  • 1
  • 15
  • 31
0
votes
1 answer

How to filter an NSArray of file urls by Spotlight File Metadata Attributes / NSMetadataQuery?

The NSMetadataQuery class seems to be how Finder/Spotlight searches for files via their metadata. NSMetadataQuery class provided by the Foundation framework. Queries can be run in two modes: asynchronous, and asynchronous with live updates. The…
pkamb
  • 33,281
  • 23
  • 160
  • 191
0
votes
1 answer

Add files to your application in Spotlight

I create an application for mac os x, the application editor, created a text file of its own format, which you can write/read, etc. How to make the indexing of these files in the Spotlight, so that when you type in field Spotlight in results…