V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  chjlu  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2014-11-05 19:47:30 +08:00
回复了 wushuang 创建的主题 问与答 OS X 升级到 10.10 之后,鼠须管的 app_options 不起作用了?
可以用我修改的版本: https://github.com/frank4565/squirrel,也可以复制粘贴以下的 patch 文件。
如何编译看这里: https://code.google.com/p/rimeime/wiki/RimeWithSquirrel

From 613a5917aa439bfb877ce6fdb47722239ee97187 Mon Sep 17 00:00:00 2001
From: Junlu Cheng
Date: Wed, 5 Nov 2014 19:21:08 +0800
Subject: [PATCH] Fixed app_options not working in OS X 10.10 Yosemite.

---
SquirrelInputController.m | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/SquirrelInputController.m b/SquirrelInputController.m
index b936aa5..e22cb4f 100644
--- a/SquirrelInputController.m
+++ b/SquirrelInputController.m
@@ -240,10 +240,7 @@
-(id)initWithServer:(IMKServer*)server delegate:(id)delegate client:(id)inputClient
{
//NSLog(@"initWithServer:delegate:client:");
- if (self = [super initWithServer:server delegate:delegate client:inputClient]) {
- _currentClient = inputClient;
- [self createSession];
- }
+ self = [super initWithServer:server delegate:delegate client:inputClient];
return self;
}

--
1.8.4.2

参见: http://www.zhihu.com/question/26083714/answer/32973546
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2631 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 04:41 · PVG 12:41 · LAX 20:41 · JFK 23:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.