// // NGAConditionalExecutor.h // P4Menu // // Created by Michael Bishop on 9/29/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> // This is a utility for executing code only if specified attributes of an object are unchanged. // // To use it, you specify the "signature" attributes and the object that contains them. after that, calling conditionallyExecuteBlock will only succeed if those attributes remain unchanged. @interface NGAConditionalExecutor : NSObject { @private NSDictionary * _values; NSArray * _keypaths; __weak id _object; } +(id)executorWithConditionalKeyPaths:(NSArray*)keypaths object:(id)object; -(id)initWithConditionalKeyPaths:(NSArray*)keypaths object:(id)object; -(BOOL)conditionallyExecuteBlock:(void(^)())block; @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8331 | Matt Attaway |
Adding initial version of MacMenu for Perforce MacMenu is a helpful Perforce client that sits in your toolbar. It allows you to run standard Perforce operations on the document that is open the currently active editor/viewer. |