site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
--- At Wed, 1 Aug 2007 09:45:10 -0700, Michael Smith wrote:
>
>On Aug 1, 2007, at 9:05 AM, Duane Murphy wrote:
>
>> Thanks Mike, unfortunately, My understanding is that adding multiple
>> items to the dictionary leads to a logical-AND match.
>
>You're correct; my apologies for getting confused on this one.
>
>> That is if I put
>> three different class name match choices into the dictionary, the
>> match
>> will be for all three at once, which of course would match none of
>> the items.
>>
>> Is there some logic that I am missing here?
>
>No; I'm guessing that you're probably stuck with checking several
>times and doing the OR yourself.
>
>Since matching isn't something you would do very often (otherwise,
>you might want to consider using notifications), is there some other
>complication involved, or are you just concerned about cost and
>complexity?
Actually it was for Notifications. I figured it would be more efficient
to use a single OR matching Notification.
Also, I believe you can use OR in a kext by replacing the dictionary
with an array, but i guess that only works for kext. I was hoping there
was an equivalent method available.
I guess I'll just register several notifications.
...Duane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
On Aug 1, 2007, at 9:05 AM, Duane Murphy wrote:
Thanks Mike, unfortunately, My understanding is that adding multiple
items to the dictionary leads to a logical-AND match.
You're correct; my apologies for getting confused on this one.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
That is if I put
three different class name match choices into the dictionary, the
match
will be for all three at once, which of course would match none of
the items.
Is there some logic that I am missing here?
No; I'm guessing that you're probably stuck with checking several
times and doing the OR yourself.
Since matching isn't something you would do very often (otherwise,
you might want to consider using notifications), is there some other
complication involved, or are you just concerned about cost and
complexity?
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
--- At Wed, 1 Aug 2007 08:42:41 -0700, Michael Smith wrote:
>
>On Jul 31, 2007, at 12:03 PM, darwin-dev-request(a)lists.apple.com wrote:
>
>> Is it possible to use IOServiceGetMatchingServices() to match with a
>> logical-OR configuration?
>>
>> I need to find several (3) different types of services. Is there some
>> way to build a dictionary that could find all three of them at once?
>
>Yes.
>
>Note that the constructors for the matching dictionaries all take an
>OSDictionary as an argument, and note that they are all documented
>with some variation on:
>
> "Create a matching dictionary, or add matching properties to an
>existing dictionary, that specify [some kind of] match."
Thanks Mike, unfortunately, My understanding is that adding multiple
items to the dictionary leads to a logical-AND match. That is if I put
three different class name match choices into the dictionary, the match
will be for all three at once, which of course would match none of the items.
Is there some logic that I am missing here?
...Duane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
On Jul 31, 2007, at 12:03 PM, darwin-dev-request(a)lists.apple.com wrote:
Is it possible to use IOServiceGetMatchingServices() to match with a
logical-OR configuration?
I need to find several (3) different types of services. Is there some
way to build a dictionary that could find all three of them at once?
Yes.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app…
Note that the constructors for the matching dictionaries all take an
OSDictionary as an argument, and note that they are all documented
with some variation on:
"Create a matching dictionary, or add matching properties to an
existing dictionary, that specify [some kind of] match."
This email sent to site_archiver(a)lists.apple.com