Tiny Deathstars of Foulness

Did you know that System Preferences is a 64-bit application? Stands to reason, but one thing I realized recently while working on some code for a System Preference pane is that 32-bit System Preferences cause System Preferences to react differently. You can use 32-bit preference panes but using them prompts you to quit System Preferences, which relaunches into a 32-bit mode. Going back to 64-bit mode also requires a relaunch. This is a great reason for developers to get their code upgraded sooner rather than later as I can’t imagine this compatibility mode will last forever…

January 9th, 2010

Posted In: Mac OS X, Mac OS X Server, Mac Security, Uncategorized

Tags: , , , ,

The scselect command only does one thing.  Open up your System Preferences and click on the Network System Preference pane.  Create a new location called test and then put your system back to the old location (obviously don’t do crap like this on a production server or anything like that).  Now fire up Terminal and type the following command:

scselect test

Provided your location was called test you should see your Network System Preference pane update immediately with the new information.  Now let’s say that you wanted to defer the new location to become active until you reboot next.  Apple included the one and only option for scselect as the ability to defer activation of a location to reboot rather than do it immediately.

Changing locations is a fairly elegant way to go about testing and scripting for network events at times.  Now you have a way to do so within your scripts.

March 19th, 2009

Posted In: Mac OS X

Tags: , , , ,