A sample using Apple's private frameworks and dynamic libraries.