How to create a basic prefPane osx?

Long-term reader, first time contributor to StackOverflow :)

disclaimer I am very new to the world of Mac development.

I am trying to create a prefPane for a small daemon that has already been created.

I would like prefPane to do two things:

  • Show the current state of the daemon ("running" or "stopped")
  • Provide a button to start / stop the daemon.

Is it possible to use Interface Builder to create an interface and somehow use its prefPane? (A stupid question?)

Thanks for the hint / pointers on how / where to start!

ps: I could not find the tag prefpane. If someone can mark this more correctly, I will not be offended :)

+3
source share
1

prefPane . . , .

Launch Daemons - . . NSTask "launchctl", , .

+2

Source: https://habr.com/ru/post/1794567/


All Articles