Re: My mute program kills volume, but menubar doesn't show it
Re: My mute program kills volume, but menubar doesn't show it
- Subject: Re: My mute program kills volume, but menubar doesn't show it
- From: Kyle Sluder <email@hidden>
- Date: Tue, 26 May 2009 08:59:15 -0700
On Tue, May 26, 2009 at 6:36 AM, Gabriel Berriz <email@hidden> wrote:
> I would like to understand why this is so incredibly difficult to do
> directly via Cocoa and CoreAudio.
I would imagine that the system preference exists at a higher
conceptual level than the hardware device state, and that manipulating
the CoreAudio device itself doesn't notify this higher-level code of
the change.
> As a matter of policy, I don't like
> to call scripts (shell, Perl, Python, AppleScript, etc.) from
> "lower-level" Objective-C (or C++) code. It simply makes no sense to
> me.
This is *quite* reasonable (in fact, it's my ethos too) but I was
indeed referring to using raw Apple Events as Hamish described.
AppleScript is just a wrapper around Apple Events, and IPC through
Apple Events is a very well-defined thing.
Good luck!
--Kyle Sluder
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden