• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Matching Multiple Services?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matching Multiple Services?


  • Subject: Re: Matching Multiple Services?
  • From: "Duane Murphy" <email@hidden>
  • Date: Wed, 1 Aug 2007 09:05:25 -0700

--- At Wed, 1 Aug 2007 08:42:41 -0700, Michael Smith wrote:

>
>On Jul 31, 2007, at 12:03 PM, email@hidden 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Matching Multiple Services?
      • From: Michael Smith <email@hidden>
References: 
 >Re: Matching Multiple Services? (From: Michael Smith <email@hidden>)

  • Prev by Date: Re: Matching Multiple Services?
  • Next by Date: Re: Matching Multiple Services?
  • Previous by thread: Re: Matching Multiple Services?
  • Next by thread: Re: Matching Multiple Services?
  • Index(es):
    • Date
    • Thread