C Objective Macro Library That Uses '$'
3 answers
I donβt know which specific library you are discussing, but I have some similar macros, and I invite you to add 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
+4
There's also Jens Ayton JANumberLiteral , which uses the same syntax, but specifically for NSNumbers.
+2