Le 18 janv. 2014 à 16:05, Rob McBroom <[email protected]> a écrit :

> On 18 Jan 2014, at 7:50, Etienne Samson wrote:
> 
>> Now I'm wondering if there's any QS plugin where it would fit nicely ;-).
> 
> If you mean the insert/remove detection, Event Triggers seems like the place.

Oh right. I was thinking it was the default place to go, unless you'd wanted to 
do crazy stuff like switching output devices using QS. NO SHUT UP I DIDN'T WANT 
TO IMPLY I'D DO IT ;-).
> 
> Also of note… 
> http://stackoverflow.com/questions/5751132/mac-get-battery-charging-status-plugged-in-or-not

Yeah, I took note of this one too. But I think I have enough of 
under-documented C-level stuff with the CoreAudio one.

<dev>
Like, you see AudioObjectAddPropertyListenerBlock ? Nice and clean, and... 
whatever.

Now, let's say you're doing it right (or trying to, at least), and you look at 
its opposite AudioObjectRemovePropertyListenerBlock.

Wait, I'm supposed to pass the original block *again* ? Did I ever needed to do 
that in Cocoa ;-) ? Hmm.

Wait, *I* have to copy the block myself, since *blah*Add*blah* will copy it on 
my behalf, and I'd be left with a block whose address doesn't match what it 
actually used.

Now I feel icky again...
</dev>

So no, I won't go poking around IOKit yet (I already have DiskArbitration 
mostly covered but still clunky sooo).

Cheers, 
Etienne Samson
--
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to