A few months ago, the screen of my MacBook Pro cracked. At the time, I placed the laptop next to the sofa, when I was too tired in that evening, I accidentally let the computer fall. When I picked it up, I noticed that the edge of the screen was

Read More

Background

最近我的 mac 上有一个功能让我特别烦,因为我经常在 Chrome 里用 crxMouse 这个插件,所以习惯了在窗口里通过划 L 来关闭窗口等等,但是不知道什么时候开始,这个功能也在 macOS native apps 里面生效了。本来看起来是挺好的,但是可能是因为不兼容新系统的原因,这个未知的 app 在触发手势的时候总是画出一个不透明的窗口,大小 800x800,实在是丑爆了。

我怎么都想不起来这是什么 app 开启的,是什么时候开启的。因为之前很长一段时间里我都是只用 TrackPad 的,只是最近开始用普通鼠标的,而它是通过按住鼠标右键划线开始触发的。

jitouch-gesture-window

Inspector

每当这个时候我都是第一时间想到用 Accessibility Inspector.app 来救场,比如前两个月我碰到过几次因为 Force Quit 弹出的进程恢复窗口不能关闭的问题。直接启动 Inspector.app,然后锚定那个弹窗,马上就能找到具体是哪个进程的弹窗了,然后马上 killall UserNotificationCenter,生效。

这个问题其实很多人之前都遇到过,usernotificationcenter freezing constantly

Read More

Review the MVVM pattern with Objective-C on iOS development again.

Preface

In the last post I’ve proven what the view model it is and how to use it correctly in mvc pattern, it can recall me about another famous architectural pattern MVVM (Model-View-ViewModel) always. However,

Read More