How to detect something in headphone jack on a Mac?

Is there a way to detect if something is plugged into the headphone jack of a Mac using c or objective-c?

Thanks

6
задан David 5 May 2011 в 05:54
поделиться