PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/thirdparty/SPMediaKeyTap/SPInvocationGrabbing/NSObject+SPInvocationGrabbing.h

http://github.com/tomahawk-player/tomahawk
C Header | 30 lines | 28 code | 2 blank | 0 comment | 0 complexity | 21417129fd15adb3e8e88f53c96a5249 MD5 | raw file
 1#import <Foundation/Foundation.h>
 2
 3@interface SPInvocationGrabber : NSObject {
 4    id _object;
 5    NSInvocation *_invocation;
 6    int frameCount;
 7    char **frameStrings;
 8    BOOL backgroundAfterForward;
 9    BOOL onMainAfterForward;
10    BOOL waitUntilDone;
11}
12-(id)initWithObject:(id)obj;
13-(id)initWithObject:(id)obj stacktraceSaving:(BOOL)saveStack;
14@property (readonly, retain, nonatomic) id object;
15@property (readonly, retain, nonatomic) NSInvocation *invocation;
16@property BOOL backgroundAfterForward;
17@property BOOL onMainAfterForward;
18@property BOOL waitUntilDone;
19-(void)invoke; // will release object and invocation
20-(void)printBacktrace;
21-(void)saveBacktrace;
22@end
23
24@interface NSObject (SPInvocationGrabbing)
25-(id)grab;
26-(id)invokeAfter:(NSTimeInterval)delta;
27-(id)nextRunloop;
28-(id)inBackground;
29-(id)onMainAsync:(BOOL)async;
30@end