2013-01-19 30 views
2

this software作者:沙盒是否允許我的應用程序挖掘Quartz事件?

TextExpander cannot be "sandboxed" according to the latest restrictions from Apple

這裏是TextExpander做:

TextExpander saves your fingers and your keyboard, expanding custom keyboard shortcuts into frequently-used text

這是什麼意思是什麼呢?我想對Quartz事件作出反應並相應地發佈Quartz事件。

+0

鍵盤快捷鍵和Quartz有什麼共同點? – trojanfoe

+0

通過鍵盤快捷鍵,作者實際上意味着完成快捷方式擴展到預定義的片段。 – alecail

+0

但是這與Quartz有什麼關係?爲什麼甚至提到它。 – trojanfoe

回答

2

它看起來不可能在沙盒應用程序中使用CGEventTap。這Apple Developer Forum thread顯示一些細節。

+0

CGEventTap可以在沙盒應用程序內部使用 - 但僅適用於傳遞到應用程序本身的事件,而不是傳遞到外部應用程序的事件。 – AriX