Core Spotlight on macOS: Is thumbnailData used?

It seems to me that setting the thumbnailData and thumbnailURL attributes on the CSSearchableItemAttributeSet has no function in macOS. The Spotlight interface will only ever show the application icon in search results.

Is this the expected behaviour? Is setting this attribute useful in any way?

Answered by dagronf in 726620022

Seeing the same thing here on macOS 12 (even with recent Xcode betas). The thumbnail seems to be completely ignored.

However, running the same application on macOS 13 beta (compiled with Xcode 14 beta 6) the custom thumbnail is appearing as expected (well, I've only tested for thumbnailData).

Annoying as hell. So much wasted time.

Accepted Answer

Seeing the same thing here on macOS 12 (even with recent Xcode betas). The thumbnail seems to be completely ignored.

However, running the same application on macOS 13 beta (compiled with Xcode 14 beta 6) the custom thumbnail is appearing as expected (well, I've only tested for thumbnailData).

Annoying as hell. So much wasted time.

I'm also seeing the same behavior on macOS 12.

Core Spotlight on macOS: Is thumbnailData used?
 
 
Q