Difference between revisions of "Talk:Portal:Mac"

From Lazarus wiki
Jump to navigationJump to search
(→‎To do: Cached pref file)
(→‎To do: updated)
Line 66: Line 66:
 
* Detect "best" web browser - up to 10.15 <tt>LSCopyAllHandlersForURLScheme(CFSTR("https"))</tt> then <tt>LSCopyApplicationURLsForURL</tt> - see LSInfo.pas
 
* Detect "best" web browser - up to 10.15 <tt>LSCopyAllHandlersForURLScheme(CFSTR("https"))</tt> then <tt>LSCopyApplicationURLsForURL</tt> - see LSInfo.pas
 
* Distribute via app store https://developer.apple.com/forums/thread/128166
 
* Distribute via app store https://developer.apple.com/forums/thread/128166
* To reload the preference file manually (avoid cached copy), use defaults read <filename>.plist to read the new plist values.
+
* To reload the plist file manually (avoid cached copy), use defaults read <filename>.plist to read the new plist values or maybe
 +
killall cfprefsd && killall Finder

Revision as of 01:24, 14 February 2022

Light bulb  Note: A list of macOS items, native code techniques etc to document in the Mac Portal

Trev's Mac Portal ToDo List

Done

In progress

  • macOS daemons and agents new macOS daemons and agents page - done but:
    • awaiting code examples: boot script; monitor script; login agent to do(?)
    • system-wide launch daemons - done (still need launch_activate_socket() for servers)
  • macOS Energy Efficiency Guide - started, in progress
  • Add full project source code to SourceForge for all my examples... will take a while.

Stalled

  • UNUserNotificationCenter notification for Big Sur [stalled]

To do

killall cfprefsd && killall Finder