blob: deded4d717c9c572566622ab14442829dff5bf0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#import "injectee-AppDelegate.h"
@interface NSObject (mach_inject_test_injector_app)
- (void)notifyInjectorReadyForInjection;
- (void)notifyInjectorSuccessfullyInjected;
@end
@implementation injectee_AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification*)notification_ {
return;
id injector = [NSConnection rootProxyForConnectionWithRegisteredName:@"mach_inject_test_injector_app" host:nil];
printf("hi!!!\n");
assert( injector );
[injector notifyInjectorReadyForInjection];
}
- (void)notifyInjecteeSuccessfullyInjected {
return;
printf("OMG injected!!!\n");
id injector = [NSConnection rootProxyForConnectionWithRegisteredName:@"mach_inject_test_injector_app" host:nil];
assert( injector );
[injector notifyInjectorSuccessfullyInjected];
}
@end
|