Permalink
Browse files

Add `CONSTANT' for creating string constants

  • Loading branch information...
1 parent a779f51 commit 6ab31c476709ec1fcda209e5fd15032f7995eb1a @mkhl committed Nov 7, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 Macros.h
View
@@ -75,6 +75,11 @@ static inline void releaseObject(id *thing)
#endif
+// String Constants
+// Inspiration: http://www.zathras.de/angelweb/blog-helpful-xcode-user-scripts.htm
+#define CONSTANT(thing) NSString *const thing = @#thing
+
+
// KVO contexts for Proper Key-Value Observer Usage.
// Source: http://www.dribin.org/dave/blog/archives/2008/09/24/proper_kvo_usage/
#define KVO_Context(thing) static NSString *const thing = @#thing

0 comments on commit 6ab31c4

Please sign in to comment.