Recently, I came across a useful Objective C macro library on Github. The library cleverly used the '$' to denote its macros. For example, $dict(key1, obj1, key2, obj2) would return a NSDictionary with its respective keys and values.
Do you know the name of this library and its Github url?
Found it: ConciseKit [https://github.com/petejkim/ConciseKit]
I don't know which specific library you are discussing, but mine has some similar macros and I invite you to add more along these lines:
#define $array(objs...) [NSArray arrayWithObjects: objs, nil]
#define $set(objs...) [NSSet setWithObjects: objs, nil]
#define $format(format, objs...) [NSString stringWithFormat: format, objs]
It also defines $rect, $point, $size, etc.
https://github.com/peterdeweese/es_ios_utils/blob/master/es_ios_utils
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With