Posts

Post not yet marked as solved
2 Replies
My question is, do kev_class and kev_subclass have to match to receive the broadcast?If kev_request.kev_class = KEV_ANY_CLASS, no matter what kind of class is kev_subclass, it will received.
Post marked as solved
6 Replies
Thank you very much,I just want a clear answer and I will introduced them briefly.Even if they're abandoned.
Post marked as solved
6 Replies
Thanks,I've read that document before and my app only uses Vnode Scope.But, I do not know how to test Process Scope and Generic Scope.Or should I say how to trace them.
Post marked as solved
9 Replies
Thanks you very much.But, one of my applications is a command line tool application and it does not have "Capabilities", or should I say it can't Keychain Sharing.And what do you mean "use the iOS style keychain"?Does it have any keywords in attributes?
Post marked as solved
2 Replies
Thank you very much,I found a way to control the trackpad by capturing callbacks to events.CGEventRef event_callback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon); CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap, 0, kCGEventMaskForAllEvents, event_callback, NULL);It meets my needs.And I will also try to solve this problem head-on whitch. Like switches, set the configuration of trackpad.
Post not yet marked as solved
3 Replies
Right, and I want to delete redundant issues, but I didn't find a way~
Post marked as solved
9 Replies
Thanks,There are two or more applications here in one team.One have GUI, others are service.I have the following questions now:I have set "allows all applications to access this item" when one application save a key, but other applications want to get this key need login password.I have set "trust list" when one application save a key, and other applications whitch in trust list need login password too when get this key.I've considered using keychain sharing, but service applications can not be configured.Is there have some better way to share keychain item without login password?
Post not yet marked as solved
3 Replies
I use the following codes can "allows all applications to access the item":SecAccessRef accessRef; NSArray *trustList = [NSArray arrayWithObjects:(__bridge id)saveRef, (__bridge id)getRef, nil]; SecAccessCreate((__bridge CFStringRef)@"access", (__bridge CFArrayRef)trustList, &accessRef); SecACLRef aclRef; SecACLCreateWithSimpleContents(accessRef, NULL, (__bridge CFStringRef)@"access", 0, &aclRef);But,App A create a key and could get it, App B could not get it.Why?What have I missed?
Post marked as solved
9 Replies
Thank you very much.And this is an Enterprise app.Now, I also want to know how to allows all applications to access the default keychain item?I know there are some attributes to control it.kSecAttrAccess kSecAttrAccessControlAnd I try to use them, but it doesn't work.Now, I have no idear.And I really want a example with attributes code.Best Regards
Post marked as solved
9 Replies
If the setting allows all applications to access this keychain item.And my question is how to allows all applications to access this item?(access to this item is not restricted)What should I use to set the attributes?kSecAttrAccess or kSecAttrAccessControl?And what is the value of the key?
Post marked as solved
3 Replies
Thank you very much.Here are some methods without implements:// macOS 10.14 + (void)presentSystemModalTouchBar:(NSTouchBar *)touchBar placement:(long long)placement systemTrayItemIdentifier:(NSTouchBarItemIdentifier)identifier; + (void)presentSystemModalTouchBar:(NSTouchBar *)touchBar systemTrayItemIdentifier:(NSTouchBarItemIdentifier)identifier; + (void)dismissSystemModalTouchBar:(NSTouchBar *)touchBar; + (void)minimizeSystemModalTouchBar:(NSTouchBar *)touchBar; // macOS 10.13 + (void)presentSystemModalFunctionBar:(NSTouchBar *)touchBar placement:(long long)placement systemTrayItemIdentifier:(NSTouchBarItemIdentifier)identifier; + (void)presentSystemModalFunctionBar:(NSTouchBar *)touchBar systemTrayItemIdentifier:(NSTouchBarItemIdentifier)identifier; + (void)dismissSystemModalFunctionBar:(NSTouchBar *)touchBar; + (void)minimizeSystemModalFunctionBar:(NSTouchBar *)touchBar;Many said those are private APIs, and I do not know how to use them because those are unuseful.Or should I import some frameworks?Thanks a lot.
Post not yet marked as solved
12 Replies
I am so sorry, again, and I am a new guy.I can't understand of start a new thread, or could I say I don't know how to write code.I need codes, please
Post not yet marked as solved
12 Replies
I am so sorry about Abuse Reported.My English is terrible, I don't know what mean of 'Abuse Reported' beforeI think that is repley, sorry~
Post not yet marked as solved
12 Replies
Excuse me.This is my code:// 'withUnsafeMutableBytes' is deprecated: use 'withUnsafeMytableBytes(_:(UnsafeMutableRawBufferPointer) throws -> R) rethrows -> // R' instead var data = Data(count: length) let result data.withUnsafeMutableBytes { return SecRandomCopyBytes(kSecRandomDefault, length, $0) }What should I do to fix this warning?I have no idear, Please.