system-preferences

FinderSync check if extension is selected

为君一笑 提交于 2019-12-03 15:09:36
I am developing a FinderSync extension and I have some issues in checking if the selection is selecting, or selecting/deselecting the extension. Is there a way to programmatically check if a FinderSync extension is selected in System Preferences->Extensions ? Are there any API's to get notified when this selection changes? Is there any API to select/deselect an extension, beside using the following? system("pluginkit -e use -i com.mycompany.finderExt") Note that I have already visited these pages: How to enable FinderSync Extension in the System Preference in Cocoa - Objective C OSX Finder

OS X System Preferences URL Scheme

限于喜欢 提交于 2019-12-03 07:38:14
问题 I’m trying to open the Notifications preference pane (in OS X SystemPreferences.app) via a link. The prefix x-apple.systempreferences:// works so far for opening the system preferences app, but I’d like to open the notifications pane directly and (in the best case) even select my app in the list. Does anybody know whether the SystemPreferences.app does take any arguments when opened via its URL-Scheme? I already tried x-apple.systempreferences://Notifications and x-apple.systempreferences:/

Does anyone know where OSX stores the settings in System Preferences > Keyboard > Modifier Keys?

萝らか妹 提交于 2019-12-01 09:25:49
I'm apparently not the only one who wants to know ( How can I change modifier keys in "System Preferences > Keyboard > Modifier Keys..." ). I've tried watching the System Preferences app with dtruss, but that doesn't seem to be possible on 10.10.3 (which is what I'm on right now), and I'm not even sure that that would be at all useful if System Preferences is just getting settings from cfprefsd. Watching cfprefsd with dtruss doesn't seem to catch the relevant file access. Does anyone know of an API to get this information? Something in gestalt perhaps? Ok - answering my own question. I threw

Using Swift with an OS X Preference Pane plugin

隐身守侯 提交于 2019-11-30 12:14:31
I'd like to use Swift to build an OS X Preference Pane plugin for the System Preferences app, but I can't get it to work. After clicking "Next" the Xcode template doesn't offer an option to choose Swift as a language, but automatically creates the project in Objective-C. Without adding any code or doing anything else, the project builds successfully. If you right-click on the Product and select "Open in External Editor", System Preferences will successfully install and load the preference pane. It just works! Well that's great, but now, I want to add a new Cocoa subclass using Swift. Accepting