simbl

AppleEvent: how to debug `eventDidFail`?

心已入冬 提交于 2020-01-25 12:20:06
问题 I am getting this error from SIMBL in the console: 05.09.11 17:00:09,165 SIMBL Agent: eventDidFail:'tvea' error:Error Domain=NSOSStatusErrorDomain Code=-1708 "The operation couldn’t be completed. (OSStatus error -1708.)" (the AppleEvent was not handled by any handler ) UserInfo=0x400e485c0 {ErrorNumber=-1708} userInfo:{ ErrorNumber = "-1708"; } I am trying to debug this; but as I haven't really worked with AppleEvent that much yet, I'm not really sure how to interpret that. I think the

Mac OS X Window Server vs. X11: the insane task

♀尐吖头ヾ 提交于 2020-01-01 03:23:08
问题 Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :) There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is accessible via Quartz Window Services so that I can get its CSWindowID, title, position, size and owner's PID (PID of X11.app). But it does not support

SIMBL with Method Swizzling

六月ゝ 毕业季﹏ 提交于 2019-12-13 12:20:48
问题 I have some great troubles overriding some functions in an external App that I use SIMBL to hook in to. In this app, there is a class - let's call it "AppClass". In this class there is a function, -(void)doSomething; I got this from class-dumping the Binary. the whole interface is defined as: @interface AppClass : NSObject { } I'm trying to override this function with jr_swizzleMethod:withMethod:error: With the lack of documentation, this is what I have come up with: #import "JRSwizzle.h"

Can you use SIMBL to develop a plug-in for the iPhone's Safari? [closed]

对着背影说爱祢 提交于 2019-12-08 12:20:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Can you use SIMBL to develop a plug-in for the iPhone's Safari? 回答1: No, you cannot. 回答2: As is clear in Apple's terms of use with the iPhone SDK, no non-native code can be run by any application. This means, among other things NO PLUGINS. At all. Not for Safari, not for your own application. 回答3: For devices

SIMBL/Bundle/dylib injection into Dock.app

眉间皱痕 提交于 2019-12-07 10:40:53
问题 I'm working on a simple SIMBL bundle to decrease the FullScreen animation time in Lion. It's no big deal to change the animation of the windows, however doing that for the menubar/desktop animation part (where the menubar+desktop slide to the left) is a problem. I think that Dock.app is responsible for that animation. However, SIMBL can't inject a bundle into Dock.app (same with Finder). I tried creating a .dylib which then would be loaded into Dock by setting the LSEnvironment in Dock's Info

SIMBL/Bundle/dylib injection into Dock.app

血红的双手。 提交于 2019-12-05 16:19:16
I'm working on a simple SIMBL bundle to decrease the FullScreen animation time in Lion. It's no big deal to change the animation of the windows, however doing that for the menubar/desktop animation part (where the menubar+desktop slide to the left) is a problem. I think that Dock.app is responsible for that animation. However, SIMBL can't inject a bundle into Dock.app (same with Finder). I tried creating a .dylib which then would be loaded into Dock by setting the LSEnvironment in Dock's Info.plist but that failed. Is there any good way to inject a bundle/dylib into Dock.app? Thanks in Advance

SIMBL with Method Swizzling

我是研究僧i 提交于 2019-12-04 20:12:14
I have some great troubles overriding some functions in an external App that I use SIMBL to hook in to. In this app, there is a class - let's call it "AppClass". In this class there is a function, -(void)doSomething; I got this from class-dumping the Binary. the whole interface is defined as: @interface AppClass : NSObject { } I'm trying to override this function with jr_swizzleMethod:withMethod:error: With the lack of documentation, this is what I have come up with: #import "JRSwizzle.h" #import "AppClass.h" @interface AppClass (MyPlugin) - (void)myPlugin_doSomething; @end @implementation

Mac OS X Window Server vs. X11: the insane task

岁酱吖の 提交于 2019-12-03 16:29:53
Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :) There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is accessible via Quartz Window Services so that I can get its CSWindowID, title, position, size and owner's PID (PID of X11.app). But it does not support Accessibility API, so there's no way to control it (except, maybe Core Graphichs private functions from the

How do I implement method swizzling?

喜夏-厌秋 提交于 2019-11-28 20:38:30
问题 I am trying to modify behaviour of a program (i dont have it's source) using SIMBL. I used class dump and found out that I need to overide an instance method This method is in the class called controller. All I need to do is get the argument arg1 and thats it. Maybe NSLog it or post a notification... I read about method swizzling in objective-c but how can I use it?. I would need to refer to the class MessageController whose course i don't have. Thanks! 回答1: I'm guessing you need to call the