forked from mirrors/linphone-iphone
Launch using the following command: xcodebuild -sdk iphonesimulator -project linphone.xcodeproj -scheme "LinphoneTester" test RUN_UNIT_TEST_WITH_IOS_SIM=YES
26 lines
630 B
Objective-C
26 lines
630 B
Objective-C
//
|
|
// DTObjectBlockExecutor.h
|
|
// DTFoundation
|
|
//
|
|
// Created by Oliver Drobnik on 12.02.13.
|
|
// Copyright (c) 2013 Cocoanetics. All rights reserved.
|
|
//
|
|
|
|
/**
|
|
This class is used by [NSObject addDeallocBlock:] to execute blocks on dealloc
|
|
*/
|
|
|
|
@interface DTObjectBlockExecutor : NSObject
|
|
|
|
/**
|
|
Convenience method to create a block executor with a deallocation block
|
|
@param block The block to execute when the created receiver is being deallocated
|
|
*/
|
|
+ (id)blockExecutorWithDeallocBlock:(void(^)())block;
|
|
|
|
/**
|
|
Block to execute when dealloc of the receiver is called
|
|
*/
|
|
@property (nonatomic, copy) void (^deallocBlock)();
|
|
|
|
@end
|