Re: KextManager question
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. |
_______________________________________________
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