spotlight

Xcode 10 Archives to 'Other Items' instead of 'MacOS Apps'

给你一囗甜甜゛ 提交于 2020-02-22 15:31:48
问题 This was working perfectly - before I upgraded to Xcode 10 that is. My app has a Quicklook and a Spotlight plugin integrated into it. These plugins are built separately and then, in the Build Phase, copied (two Copy Files) with the following settings: Destination: Wrapper Subpath: Contents/Library/<QuickLook|Spotlight> Code Sign on Copy Now, when I attempt to Archive in order to submit my App to the Mac App Store, my application archive to 'Other Items' instead of 'MacOS Apps'. If I remove my

Xcode 10 Archives to 'Other Items' instead of 'MacOS Apps'

旧巷老猫 提交于 2020-02-22 15:31:35
问题 This was working perfectly - before I upgraded to Xcode 10 that is. My app has a Quicklook and a Spotlight plugin integrated into it. These plugins are built separately and then, in the Build Phase, copied (two Copy Files) with the following settings: Destination: Wrapper Subpath: Contents/Library/<QuickLook|Spotlight> Code Sign on Copy Now, when I attempt to Archive in order to submit my App to the Mac App Store, my application archive to 'Other Items' instead of 'MacOS Apps'. If I remove my

How to make custom iOS apps easier for Spotlight to find

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-24 04:24:11
问题 I write lots of little test apps on my devices. Is there some metadata I can add to the app so it appears more readily in Spotlight searches? For instance, I made a laundry timer app named Lavado Can I make it appear in Spotlight searches when I search for "timer" or "laundry"? This is not for the Apple App Store, just on my devices. 回答1: Spotlight searches both names as they appear in SpringBoard (your home screen) and their full App Store names. So if your application full name is "Lavado

Spotlight NSMetaDataQuery with invisible items do not auto update

时光怂恿深爱的人放手 提交于 2020-01-06 08:14:46
问题 The original search runs fine, but any changes to invisible items go unnoticed by the query. The query can be ran again and it will find the updates. The query is non-nil and spotlight notifications have not been unsubscribed. Is this a bug or expected behavior? I have tested this several times in a few different projects and it seems to hold true. 回答1: One technique for saving a document bundle is to take advantage of the fact that Spotlight does not import metadata from invisible files or

macOS Sierra Spotlight extensions

∥☆過路亽.° 提交于 2020-01-03 10:57:50
问题 Unfortunately I could not find anything up-to-date online about this topic. Similar to the question stated here: OS X Yosemite Spotlight extensions, is it possible by now to extend Spotlight on macOS Sierra ? 回答1: Yes it is. Github user w0lfSchild is still actively maintaining this project: https://github.com/w0lfschild/Flashlight, which also allows writing your own plugins. It is actually a fork of the Flashlight project mentioned in the post you linked to 来源: https://stackoverflow.com

Writing Spotlight metadata to files on OS X (specifically kMDItemDisplayName)

心已入冬 提交于 2020-01-01 17:08:11
问题 I see that this has been answered previously by Ken T., but I have a case where the code appears to work, and the call to setxattr() returns 0, but the item I want to modify does not change. Specifically, I'm trying to change the metadata attribute kMDItemDisplayName, and my call looks like this (modeled after the sample posted by Ken T): [Note: the "name" param below is an NSString *] rc = setxattr([pathString cStringUsingEncoding:NSUTF8StringEncoding], "kMDItemDisplayName", [name

OS X Yosemite Spotlight extensions

久未见 提交于 2020-01-01 02:38:05
问题 Is it possible to extend spotlight's search feature to support additional commands? For example, is it possible to define custom web search aliases, meaning I could type yt and it would provide results from youtube. Alternatively, is it possible to add additional system commands were I could type sl (or some variant) to put my computer to sleep. 回答1: No it is not possible, there are only 4 types of extensions for OS X Yosemite: Today - Get a quick update or perform a quick task in the Today

解决Mac上用spotlight搜索输入几个字母后闪退

谁说我不能喝 提交于 2019-12-30 14:47:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 问题描述:使用spotlight进行搜索时,只要输入字母超过一定个数(在我的Mac上是3个),spotlight就闪退了。 谷歌搜索得到大部分解决方案是在系统自带词典的偏好设置里取消外部字典的勾选(如https://placeless.net/2017/09/28/spotlight-search-crash-on-high-sierra.html)。但实际操作发现这个并不能解决我Mac上的问题。 解决方法:按苹果官网上关于这问题的讨论(https://discussions.apple.com/thread/8546951)可能是近期Safari的升级所致,需要在spotlight的设置里取消书签与历史记录(Bookmarks & History)的勾选,即系统偏好设置-Spotlight-搜索结果-书签与历史记录(Bookmarks & History)取消勾选。 来源: oschina 链接: https://my.oschina.net/u/1037903/blog/2221932

Mac上声音问题如何解决

让人想犯罪 __ 提交于 2019-12-29 17:42:48
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在我们使用Mac或macbook过程中,是不是经常遇到这些问题:mac出现音频故障,内部组件发出奇怪的声音,连接外部音频设备出问题或声音根本不起作用等等。。。 好多使用mac的小伙伴也经常问Mac电脑没声音怎么办?今天macdown小编给大家带来几个小妙招,轻松解决Mac上声音问题,一起来看看吧! Mac上没有声音了,首先检查音量 检查音量,有没有将mac静音。按住 F12 按钮增加音量,或使用菜单栏中的滑块进行调整。 此外,检查mac音频端口,有没有连接耳机或其他外部设备。 选择正确的音频设备 以上故障排除后,如果Mac的声音仍然无法正常工作,我们接下来将查找声音问题是系统范围的还是仅在特定应用程序中出现。 插入耳机,麦克风或任何其他外部设备后,如果还听不到任何声音,则必须检查输入/输出音频设备设置。有时,由于配置错误,驱动程序不兼容,冲突或其他原因,您的Mac可能选择了错误的设备。 启动“ 系统偏好设置”, 然后选择“ 声音” 。跳至“ 输入” 选项卡以检查输入音频设备设置。确保您选择了正确的音频输入设备。 对输出音频设备进行设置。一个常见的错误是在不知不觉中连接了蓝牙设备,因此音频会通过蓝牙设备播放,而不是通过Mac的扬声器播放。 有时,简单地从一个输出切换到另一个输出也可以解决此问题。另外

【Mac Technology Overview】(三) Cocoa Application Layer

泪湿孤枕 提交于 2019-12-28 05:29:40
【Mac Technology Overview】(三) Cocoa Application Layer 文章目录 【Mac Technology Overview】(三) Cocoa Application Layer 一、概述 二、High-Level Features 高层级功能 1、Notification Center 通知中心 2、Game Center 游戏中心 3、Sharing 分享 4、Resume 恢复 5、Full-Screen Mode 全屏模式 6、Cocoa Auto Layout (Cocoa 布局) 7、Popovers 弹窗 8、Software Configuration 软件配置 9、Accessibility 辅助功能 10、AppleScript 脚本 11、Spotlight 搜索聚焦 12、Ink Services 三、Frameworks 框架 1、Cocoa Umbrella Framework 2、AppKit 3、Game Kit 游戏 4、Preference Panes 偏好设置面板 5、Screen Saver 屏保 6、Security Interface 安全接口 原文地址: https://developer.apple.com/library/archive/documentation/MacOSX