Re:Show HN: My network connection monitor for Mac
by tychobrahe on Saturday October 08, 2011 @10:43AM
(#3088015)
I believe smcfancontrol installs its kext by demand from inside the Cocoa App. I don't know how it's done (I only do UNIX stuff on my Mac =/) but I believe it changes the .kext owner and invokes kextload. You can 'sudo' from inside a Cocoa App by using AuthorizationExecuteWithPrivileges:
http://michaelobrien.info/blog/2009/07/authorizationexecutew...
About PKGs: I think that they're okay, but, historically, they're maligned for being "black boxes" that install files all over your system. App files, OTOH, are (99% of the time) clean, live on /Applications, and sometimes use ~/Library.
Re:Show HN: My network connection monitor for Mac
by wukkuan on Saturday October 08, 2011 @11:17AM
(#3088094)
VMWare and most applications that do this use Authorization Services. It's what pops up the dialog asking you to enter your password. Feels pretty magic to use it.
https://developer.apple.com/library/mac/#documentation/Secur...
Re:Show HN: My network connection monitor for Mac
by nupark2 on Saturday October 08, 2011 @10:58AM
(#3088048)
The downside to packages (in users' minds) is that you have no idea where the pkg is going to install things, and also no idea how to clean it up later.
It's assumed that an .app, however, will remain self-contained.
Out of curiosity: is there a downside to pkg's?