[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[coco8] ToDo - ObjectiveC blocks to be implemented

selector/kind
signature
example
enumerationRangevoid(^)(id,NSRange,BOOL*)void (^)(NSDictionary *attrs, NSRange range, BOOL *stop)
matchvoid(^)(id,BOOL,BOOL*)void (^)(NSDate *date, BOOL exactMatch, BOOL *stop)
bytesRangevoid(^)(const void*,NSRange,BOOL*)void (^)(const void *bytes, NSRange byteRange, BOOL *stop)
bytesvoid(^)(void*,NSUInteger)void (^)(void *bytes, NSUInteger length)
enumKeysvoid(^)(id,obj,BOOL*)void (^)(id key, id obj, BOOL *stop)
enumRangesvoid(^)(NSRange,BOOL*)void (^)(NSRange range, BOOL *stop)
enumBetweenRangesvoid(^)(id,NSRange,NSRange,BOOL*)void (^)(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop)
progressvoid(^)(id,double)void (^perRecordProgressBlock)(CKRecordID recordID, double progress);
changeFloatvoid(^)(id,float)void (^GCControllerAxisValueChangedHandler)(GCControllerAxisInput *axis, float value)
changeFBvoid(^)(id,float,BOOL)void (^GCControllerButtonValueChangedHandler)(GCControllerButtonInput *button, float value, BOOL pressed);
changeF2void(^)(id,float,float)void (^GCControllerDirectionPadValueChangedHandler)(GCControllerDirectionPad *dpad, float xValue, float yValue);


References (already implemented)

selector/kind
signature
example
stepQueryvoid(^)(NSInteger,id)void (^CMStepQueryHandler)(NSInteger numberOfSteps, NSError *error);
stepUpdatevoid(^)(NSInteger,id,id)void (^CMStepUpdateHandler)(NSInteger numberOfSteps, NSDate *timestamp, NSError *error);
block0
void
(void (^)(void))(void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler;
enumeratorvoid(^)(id,NSUInteger,BOOL*)void (^)(id obj,NSUInteger idx,BOOL* stop)
completionWithErrorBlockCallingvoid(^)(BOOL,NSError*)implementing
completionvoid(^)(BOOL,id)void(^CompletionHandler)(BOOL success, NSError *error)
bool2void (^)(BOOL, BOOL)void (^UICollectionViewLayoutInteractiveTransitionCompletion)(BOOL completed, BOOL finished);
testIdxBOOL(^)(id,NSUInteger,BOOL*)BOOL (^)(id obj,NSUInteger idx,BOOL* stop)
testBOOL(^)(id,BOOL*);BOOL (^)(id obj, BOOL *stop)
testIndex
predicate
BOOL(^)(id,NSUInteger,BOOL*)BOOL (^)(id obj, NSUInteger idx, BOOL *stop)
testKeysBOOL(^)(id,obj,BOOL*)BOOL (^)(id key, id obj, BOOL *stop)
testIntegerBOOL(^)(NSUInteger,BOOL*)BOOL (^)(NSUInteger idx, BOOL *stop)
searchvoid(^)(id,BOOL*);void (^EKEventSearchCallback)(EKEvent *event, BOOL *stop);
comparatorulong(^)(id,id)NSComparisonResult (^NSComparator)(id obj1, id obj2);
block1
do/changes
void(^)(id)void (^ALAssetsLibraryGroupResultBlock)(ALAssetsGroup *group)
void (^FailureBlock)(NSError *error);
block2
doWith
void(^)(id,id);void (^ALAssetsLibraryWriteVideoCompletionBlock)(NSURL *assetURL, NSError *error);
block3 changeCompletionvoid(^)(id,id,id)void (^fetchRecordChangesCompletionBlock)(CKServerChangeToken *serverChangeToken, NSData *clientChangeTokenData, NSError operationError);