mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 20:09:50 +01:00
97a8aa54be
Thanks to: tyler.s.rhodes@gmail.com
31 lines
841 B
Objective-C
31 lines
841 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface SPInvocationGrabber : NSObject {
|
|
id _object;
|
|
NSInvocation *_invocation;
|
|
int frameCount;
|
|
char **frameStrings;
|
|
BOOL backgroundAfterForward;
|
|
BOOL onMainAfterForward;
|
|
BOOL waitUntilDone;
|
|
}
|
|
-(id)initWithObject:(id)obj;
|
|
-(id)initWithObject:(id)obj stacktraceSaving:(BOOL)saveStack;
|
|
@property (readonly, retain, nonatomic) id object;
|
|
@property (readonly, retain, nonatomic) NSInvocation *invocation;
|
|
@property BOOL backgroundAfterForward;
|
|
@property BOOL onMainAfterForward;
|
|
@property BOOL waitUntilDone;
|
|
-(void)invoke; // will release object and invocation
|
|
-(void)printBacktrace;
|
|
-(void)saveBacktrace;
|
|
@end
|
|
|
|
@interface NSObject (SPInvocationGrabbing)
|
|
-(id)grab;
|
|
-(id)invokeAfter:(NSTimeInterval)delta;
|
|
-(id)nextRunloop;
|
|
-(id)inBackground;
|
|
-(id)onMainAsync:(BOOL)async;
|
|
@end
|