mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-29 09:40:02 +01:00
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
|