当前位置: 首页 > news >正文

北京做彩右影影视公司网站网站排名seo软件

北京做彩右影影视公司网站,网站排名seo软件,互联网技术对人力资源管理的影响有哪些,科技建筑公司网站文章目录 关于 MASShortcut项目结构 快速使用源码学习检测是否有热键冲突处理 Event macOS 开发交流 秋秋群#xff1a;644096295#xff0c;V : ez-code 关于 MASShortcut MASShortcut 是一款快捷键管理工具#xff0c;替代和兼容 ShortcutRecorder github : https://git… 文章目录 关于 MASShortcut项目结构 快速使用源码学习检测是否有热键冲突处理 Event macOS 开发交流 秋秋群644096295V : ez-code 关于 MASShortcut MASShortcut 是一款快捷键管理工具替代和兼容 ShortcutRecorder github : https://github.com/cocoabits/MASShortcut 项目结构 model MASKeyCodes : 功能键和快捷键 枚举MASShortcut : 管理 key 的组合不管是否可用MASShortcutValidator 验证shortcut 是否可用 Monitoring MASHotKey : 初始化和注册 MASShortcutMASShortcutMonitor : 注册/解除/检测 MASShortcut监控更新 User Defaults Storage MASDictionaryTransformer : 转换 shortcut 数据格式以便于存储MASShortcutBinder : 绑定用户操作和 shortcut UI MASLocalization : 替代 NSLocalizedString以便退出 app 时能从 framework 种读取字符串。MASShortcutView : Shortcut 视图图MASShortcutViewButtonCell : MASShortcutView 内部的 cell 样式可调整和重绘MASShortcutViewBindings : 设置关联的默认键 快速使用 单独使用一个 MASShortcutView 你可以修改 它的属性来改变显示的样式 MASShortcutView *shortCutView [[MASShortcutView alloc] initWithFrame:NSMakeRect(10, 10, 200, 50)];[self.window.contentView addSubview:shortCutView];shortCutView.wantsLayer YES;shortCutView.layer.backgroundColor [NSColor blueColor].CGColor; 源码学习 检测是否有热键冲突 MASShortcutValidator.m - (BOOL) isShortcutAlreadyTakenBySystem:(MASShortcut *)shortcut explanation: (NSString**) explanation {CFArrayRef globalHotKeys;if (CopySymbolicHotKeys(globalHotKeys) noErr) {// Enumerate all global hotkeys and check if any of them matches current shortcutfor (CFIndex i 0, count CFArrayGetCount(globalHotKeys); i count; i) {CFDictionaryRef hotKeyInfo CFArrayGetValueAtIndex(globalHotKeys, i);CFNumberRef code CFDictionaryGetValue(hotKeyInfo, kHISymbolicHotKeyCode);CFNumberRef flags CFDictionaryGetValue(hotKeyInfo, kHISymbolicHotKeyModifiers);CFNumberRef enabled CFDictionaryGetValue(hotKeyInfo, kHISymbolicHotKeyEnabled);if (([(__bridge NSNumber *)code integerValue] [shortcut keyCode]) ([(__bridge NSNumber *)flags unsignedIntegerValue] [shortcut carbonFlags]) ([(__bridge NSNumber *)enabled boolValue])) {if (explanation) {*explanation MASLocalizedString(This combination cannot be used because it is already used by a system-wide keyboard shortcut.\nIf you really want to use this key combination, most shortcuts can be changed in the Keyboard Mouse panel in System Preferences.,Message for alert when shortcut is already used by the system);}return YES;}}CFRelease(globalHotKeys);}return [self isShortcut:shortcut alreadyTakenInMenu:[NSApp mainMenu] explanation:explanation]; }CopySymbolicHotKeys 来自 Carbon – HiToolbox – CarbonEvents.h 处理 Event - (void) handleEvent: (EventRef) event {if (GetEventClass(event) ! kEventClassKeyboard) {return;}EventHotKeyID hotKeyID;OSStatus status GetEventParameter(event, kEventParamDirectObject, typeEventHotKeyID, NULL, sizeof(hotKeyID), NULL, hotKeyID);if (status ! noErr || hotKeyID.signature ! MASHotKeySignature) {return;}[_hotKeys enumerateKeysAndObjectsUsingBlock:^(MASShortcut *shortcut, MASHotKey *hotKey, BOOL *stop) {if (hotKeyID.id [hotKey carbonID]) {if ([hotKey action]) {dispatch_async(dispatch_get_main_queue(), [hotKey action]);}*stop YES;}}]; }https://music.163.com/#/song?id865632948 伊织 2023-12-22
http://wiki.neutronadmin.com/news/230419/

相关文章:

  • 哪里有做php网站免费教程上海公司网页设计
  • 更合网站设计沈阳市网站制作
  • 如何制作自己网站自学网站建设要多久
  • 软文营销把什么放在第一位网站如何优化排名
  • 周到的做pc端网站页面设计培训学校
  • 做企业网站需要注意什么wordpress数据在哪
  • 在线咨询网站模板做衣服外单网站有哪些
  • wordpress 新建首页西安百度seo推广
  • 辽源网站优化网站建设柒首先金手指1
  • 网站的反链怎么做深圳社保个人网页
  • 怎样局域网站建设足球网站怎么做
  • wordpress 第一张图片南宁seo做法哪家好
  • 企业网站上海熙河南省住房和建设厅网站
  • 网站拍照的幕布深圳网站建设公司服务商
  • 力洋深圳做网站公司wordpress 中间截取缩略图
  • 网站建设 部署与发布 答案绿叶网站怎么做
  • 大连企业网站建站需要锦州网站建设
  • 做正规小说网站财税公司网站开发
  • 北京中心网站建设软件网站开发设计
  • 网站建设与网站优化销售安装的字体wordpress
  • 快速网站制作企业网站建设的具体需求
  • 电子商务网站建设规划报告被黑的网站
  • php 网站开发文档怎么写wordpress cms系统
  • 沈阳定制型网站建设高密建网站
  • 基于站点的推广如何做一名优秀的网站管理者
  • 东莞网站开发哪里找网络加速
  • mip网站案例如何设置网站公司动态
  • 做网站是用c 吗企业网站备案代理公司
  • 找网站建设需要问什么软件成都优化网站分析
  • 小程序建站哪家好创意视觉网站