Created
May 28, 2010 18:32
-
-
Save seanhess/417533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSBlockOperation.h | |
// NSOperations | |
// | |
// Created by Sean Hess on 5/28/10. | |
// Copyright 2010 __MyCompanyName__. All rights reserved. | |
// | |
// Must be used with PlausibleBlocks | |
#import <Foundation/Foundation.h> | |
typedef void(^EmptyNSOperationBlock)(); | |
@interface NSBlockOperation : NSInvocationOperation { | |
// only takes one | |
EmptyNSOperationBlock block; | |
} | |
@property (nonatomic, copy) EmptyNSOperationBlock block; | |
+(id)blockOperationWithBlock:(EmptyNSOperationBlock)block; | |
// Since we're just using invocation underneath | |
-(void)executeBlock; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment