Popularity
3.9
Stable
Activity
0.0
Stable
258
9
8

Programming language: Objective-C
License: MIT License
Tags: Logging    
Latest version: v0.1.0

BlockTypeDescription alternatives and similar libraries

Based on the "Logging" category.
Alternatively, view BlockTypeDescription alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of BlockTypeDescription or a related project?

Add another 'Logging' Library

README

BlockTypeDescription

BlockTypeDescription adds a block's type signature to its description. It makes debugging more transparent, and turns an otherwise useless description into a useful one.

Because this project replaces an existing method on the private NSBlock class, this should be used for debugging purposes only.

Example Usage

NSString * (^someBlock)(NSString *, BOOL, CGRect, float*[30]) = ^(NSString *a, BOOL b, CGRect c, float *d[30]) {
    return @"Some return value";
};
NSLog(@"This is my block! %@", someBlock);

Before

This is my block! <__NSGlobalBlock__: 0x35c0>

After

This is my block! <__NSGlobalBlock__: (id (^)(id, char, struct CGRect, float*[30]))>

License

BlockTypeDescription is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the BlockTypeDescription README section above are relevant to that project's source code only.