有人在 Snow Leopard 中成功使用 mach_inject 进行 Finder 吗?
只是想知道是否有人成功地做到了这一点以及使其发挥作用的步骤是什么。
提前致谢。
Just wondering if anyone has done this successfully and what were the steps of making it work.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
GrowlSafari 使用 mach_inject ..它有效..我尝试了逆向工程,但我不明白为什么它不适用于我的捆绑加载器(基于 Growlsafari),其中没有任何内容表明它可以在雪上工作。但你总是可以尝试我仍然是一个傻瓜
GrowlSafari uses mach_inject.. it works.. I tried reverse engineering but I don't understand why it aint working for my bundle loader (wich is based on growlsafari) there's not really anything in it that would say it is working on snow.. but you could always try iam still a froob
我知道 SIMBL 使用 mach_inject (如 dropbox 和 google Drive)
SIMBL 插件和开源 ColorfulSidebar 将自身注入到 Finder
这里为插件源
希望有帮助!
I know that SIMBL use mach_inject ( like dropbox and google drive )
and that the SIMBL Plugin and Open Source ColorfulSidebar inject itself in the Finder
here for the plugin source
Hope that help!
mach_inject
用于将代码注入任意 Mac OS X 进程,但是mach_override
会覆盖同一进程内的代码。您可以在我的 FinderMenu 项目中看到使用两者的示例,该项目将项目添加到 Finder 上下文菜单。在此项目中,我使用mach_inject
将自定义包加载到 Finder 进程中,然后使用mach_override
替换上下文菜单类方法实现。mach_inject
is used to inject code into arbitrary Mac OS X process, howevermach_override
overrides code within the same process. You can see an example of using both in my FinderMenu project, which adds items to Finder context menu. In this project, I usemach_inject
to load my custom bundle into Finder process, and after thatmach_override
to replace context menu class method implementation.