BlockTypeDescription 0.1.0

BlockTypeDescription 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total664
Week0
Month0

Installs

Apps65
powered by Segment

GitHub

Stars269
Watchers9
Forks8
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 123


  • By
  • Conrad Kramer

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.

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.