当前位置: 首页 > 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://www.huolong8.cn/news/230419/

相关文章:

  • 上海网站设计成功柚v米科技淘宝客网站制作
  • 广东注册公司在哪个网站申请做电商网站的框架结构图
  • 做网站能赚钱吗表情包上海网站制作怎么选
  • 网站建设运营的灵魂是免费域名注册网站
  • icp备案网站信息修改自己如何做app
  • 上海建站网站简洁案例seo如何提高网站排名
  • 专做外贸库存的网站浙江王氏生态建设网站
  • asp个人网站模板集团门户网站建设不足
  • 在linux系统上用什么做网站全国各城市感染高峰进度查询
  • 网站建设公司知识手机端网站建站流程
  • 郴州网站设计较好的公司wordpress数据库文件
  • 建个网站有收网站流量平台
  • 重庆渝发建设有限公司官网惠州百度seo在哪
  • 做 理财网站营山县城乡规划建设局官方网站
  • 网站建设简单模板株洲网站seo优化价格
  • wordpress多站点site id温州网站系统开发
  • 怀化找工作网站不关站备案wordpress
  • 北京专业响应式网站建设做响应式网站的意义
  • 高端网站推广网站开发思路
  • 海门网站建设推一把网络营销学院
  • 徐州网站制作报价前端技术
  • 哪家做的濮阳网站建设wordpress翻译软件
  • 如何做 试题类 网站个人网站建设基本流程
  • 惠州网站建设乐云seo在线制作网页视频下载慢怎么办
  • 江苏建设厅官方网站安全员药业集团网站建设方案
  • 企业网站推广最有效的方法pop布局的网站
  • 博客优化网站seo怎么写网站信息评估抽查
  • 京挑客网站建设昆明网站建设手机版
  • 网站建设裕鸿国际网络营销的功能有哪些
  • 西宁网站seo外包营业执照注册流程