Questions tagged [nspreferencepane]
19 questions
12
votes
2 answers
Using Swift with an OS X Preference Pane plugin
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…

ElmerCat
- 3,126
- 1
- 26
- 34
7
votes
2 answers
Why does my Preference Pane seem to think it's always the wrong architecture?
This has worked just fine for a long time. As far as I can tell from the diffs I haven't changed anything... but I'm not 100% sure. All I know is that now my preference pane shows this error when I try to open it:
When I press OK, it restarts and…

Ky -
- 30,724
- 51
- 192
- 308
2
votes
2 answers
adding preference pane to an application
I have an application which resides in menu bar, pretty much like this one
And I'm trying to create a preference pane for it, as described in the apple docs.
That guide shows how to create both prefpane plugin for System Preferences and preference…

Nikita Rybak
- 67,365
- 22
- 157
- 181
2
votes
2 answers
Defining an anchor name within my preference pane
I would like enable AppleScript to reveal a particular tab within a custom preference pane I am developing, so that this works:
tell application "System Preferences"
reveal anchor "Foo" of pane id "com.example.preferences.Bar"
end tell
I cannot…

abg
- 2,002
- 7
- 39
- 63
2
votes
0 answers
Can I create an OSX System Preferences pane with Qt
I am creating an application in Qt to modify settings for a USB audio device. I need these setting to appear in System Preferences in OSX.
According to the apple documentation (Preference Pane Programming Guide) the NSPrincipalClass entry in the…

Ludvig
- 21
- 2
2
votes
1 answer
How to access pref pane bundle?
How do we access Pref Pane Bundle for Mac OS app???
I have placed images and other resources inside the pref pane bundle, but I am not able to get the path using:
NSString * path = [[NSBundle mainBundle] pathForResource:@"tick"…

Saalis Umer
- 21
- 2
1
vote
1 answer
Running a preference pane on Mac as root
I have a preference pane installed in /Library/PreferencePanes. I want this preference pane to control an application that is running as root (it's a server). The preference pane bundle is owned by root. However, when I modify the preferences, it…

Raffi Khatchadourian
- 3,042
- 3
- 31
- 37
1
vote
1 answer
Debug System Pref Pane w/10.15 and System Integrity Protection
In the past, I have been able to run/debug a self-developed Preference Pane in System Preferences by self-signing a copy of the System Preferences app, and setting it as the run target in Xcode.
A symbolic link is placed in ~/Library/PreferencePanes…

Trygve
- 1,317
- 10
- 27
1
vote
1 answer
porting PreferencePane to Lion [NSTextField getCString:maxLength:encoding:]: problem
I have a PreferencePane that works on Snow Leopard and we are getting ready for Lion. PreferencePane fails to load and gives me the following error in the Console. Note that it refers to 3 NSTextField instances (reports the same error twice per…

OZG
- 509
- 7
- 19
1
vote
0 answers
NSRequiresAquaSystemAppearance and pref panes
I have a System Preferences Pane that always opens in the light appearance mode when running in 10.14. Normal apps compiled in earlier system can use dark mode by including a plist parameter: NSRequiresAquaSystemAppearance = NO.
However, when I add…

Trygve
- 1,317
- 10
- 27
1
vote
1 answer
Best way to Register a Login Item from a Preference Pane?
I'm trying to make a Preference Pane which registers a helper app as a login item.
I have both apps in the same project and I managed to add helper.app to my.prefpane's App Bundle, but I can't figure out how to enable helper.app as a login…

simsula
- 147
- 7
1
vote
0 answers
Why won't my Swift-backed Preference Pane load?
I am trying to create a custom System Preferences pane for my app. However, when I try to load it to test, I get this in the Console:
Apr 26 17:16:17 computer-name System Preferences[8545]: dlopen_preflight failed with…

Ky -
- 30,724
- 51
- 192
- 308
1
vote
0 answers
Swift on a PreferencePane, with Cocoa Bindings; what am I doing wrong?
I'm attempting to make a clone of RCDefaultApp, because it was a great app and sadly Sierra killed it.
Most of the backend is done; I'm experimenting with the interface and there's gotta be something (or a number of things) I'm doing wrong. I've…

Gregorio Litenstein
- 598
- 2
- 21
1
vote
2 answers
NSPreferencePane - Change Title of the Window
I am currently working with an NSPreferencePane and am having trouble setting the title of the Window once the PreferencePane nib file has been set. Any help with this would be greatly appreciated ?
I have tried accessing the window from the…

Michael Miscampbell
- 532
- 4
- 11
1
vote
0 answers
In an Xcode4 plugin, how does one add a pane to Xcode's preferences?
The Code Pilot Xcode plugin adds its own preference pane to Xcode's preferences, but none of the open-source Xcode plugins I've looked at have preference panes. How do I go about adding a preference pane to Xcode's preferences from an Xcode plugin…

Isaac
- 10,668
- 5
- 59
- 68