• 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: KextManager question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KextManager question


  • Subject: Re: KextManager question
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 17 Jun 2015 10:39:07 +1000

On 16 Jun 2015, at 11:54 pm, John Welch <email@hidden> wrote:

Eventually, I¹ll not just pass it nil so I can
avoid the flood of info I won¹t actually need.

You probably want something like this then:

- (NSDictionary *)loadedKextInfoWithIdentifiers:(NSArray *)identifiers infoKeys:(NSArray *)keys
{
    CFArrayRef kextIdentifiers = NULL;
    CFArrayRef infoKeys = NULL;
    if (identifiers) {
        kextIdentifiers = CFBridgingRetain(identifiers);
    }
    if (keys) {
        infoKeys = CFBridgingRetain(keys);
    }
    NSDictionary *dict = CFBridgingRelease(KextManagerCopyLoadedKextInfo(kextIdentifiers, infoKeys));
    if (kextIdentifiers != NULL) {
        CFRelease(kextIdentifiers);
    }
    if (infoKeys != NULL) {
        CFRelease(infoKeys);
    }
    return dict;
}

Pass missing value for NULL, or lists of strings.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >KextManager question (From: John Welch <email@hidden>)
 >Re: KextManager question (From: Shane Stanley <email@hidden>)
 >Re: KextManager question (From: Shane Stanley <email@hidden>)
 >Re: KextManager question (From: John Welch <email@hidden>)
 >Re: KextManager question (From: John Welch <email@hidden>)

  • Prev by Date: Re: KextManager question
  • Next by Date: Project icon not building correctly - an update.
  • Previous by thread: Re: KextManager question
  • Next by thread: Project icon not building correctly - an update.
  • Index(es):
    • Date
    • Thread