Analyzing a multi-monitor window position macOS

When developing pocketed input method,I met such a thing,That is, as a candidate bar window will go beyond the screen when the edge of the screen! and so,In the display window when I do extra check the coordinates:

In short,That is, if you count the coordinates of their width exceeds the width of the screen,Norway put it back。


Click link to continue reading...

How to make NSWindow displayed in a different Space or the Screen

Among write off the grid input method the Mac version of the process,I encountered such a problem,Article candidate system API disrepair,Many API functions exists but is essentially useless,such as:

This method is used to set the style of a candidate bar,In addition to the default inside[crayon-5d2e85e0b5e7a1982[……]

Click link to continue reading...

Save a black apple hackintosh used for development of

IPhone and other platforms to develop applications,Always need to use an Apple computer,Or iMac or rmbp,Even the mac mini is also OK。but,When a relatively large development projects,We need something more,Such as me,While doing a littleInput,But what algorithm run run thesaurus,A trip down must one day,It might also collapse again。Whenever Xcode not live up to expectations at every turn whiteboard[……]

Click link to continue reading...

OS X open RamDisk to accelerate as Safari and Xcode

With the upgrade version of Xcode,speedMore slowly,In particular, Yiyanbuge "Whiteboard"I believe we will have problems encountered。

This is the very thing affecting development efficiency。If it is possible,Then we will Xcode cache file into memory,It should be much faster speed。(Although rmbp of ssd have a very fast,But compared to memory,Or far worse -For mechanical hard drive[……]

Click link to continue reading...

Convenient to build their own use TimeMachine program

Finally I changed a relatively stable working environment,Now,This is my desktop:

All right,In short,With mobile hard disk backup on a regular basis is not a permanent solution,So,As a poor force,We give yourself to find a suitable、A convenient backup solution。

As the saying goes:

Backup is not,Wicked。

Then,We are concerned that my design。


First of all,As a poor force,Backup Solution Design[……]

Click link to continue reading...

Xcode automatic version

Make sure developers have had such trouble:Version submitted wrong!

Version of the compiler and testing more,When the inevitable submitted only to find the wrong version number。Or is the background version number is correct,Reception forget to change the version number。In fact,Allows reception automatically obtain the version number of the background data,For example, this:


Background version number[……]

Click link to continue reading...

Let iTrem 2 + zsh startup no longer wait!

iTerm as a built-in terminal mac alternatives really handy,Multi-function、Interface is also nice。Skin with zsh +,Since then, the terminal also beautiful (thematic map)。

but,zsh is always very slow start,Although the content before each start input is still not lost,But always waiting is not a thing (to tell the truth,I have endured so many years ......)

In short,In fact, this problem can be solved[……]

Click link to continue reading...

Let go SSH proxy server connection

Many network operation and maintenance、Or owners need to manage the server via ssh、vps,If you do not happen to,Separated by a wall between you and the server GFW,Then since GFW will analyze ssh packets,Result was slightly slower network will allow the command to card one minute。

GFW is now fully capable of analyzing traffic characteristics ssh,To determine whether you are really using the ssh server configuration,Or use it[……]

Click link to continue reading...

Swift uses InputMethodKit to write an input method

How to write an input method on iOS? This question has been answered a lot of people over。You can easily find a detailed tutorial by Google。but,On macOS write an input method is not so simple。

Ok,Strictly speaking,I mean use Swift to write a input method is difficult on macOS。The main reason is that no one has ever done this thing 。

Now able to[……]

Click link to continue reading...