NSString+ObjcRuntime.h 689 B

123456789101112131415161718192021
  1. //
  2. // NSString+ObjcRuntime.h
  3. // FLEX
  4. //
  5. // Derived from MirrorKit.
  6. // Created by Tanner on 7/1/15.
  7. // Copyright (c) 2015 Tanner Bennett. All rights reserved.
  8. //
  9. #import <Foundation/Foundation.h>
  10. @interface NSString (Utilities)
  11. /// A dictionary of property attributes if the receiver is a valid property attributes string.
  12. /// Values are either a string or \c @YES. Boolean attributes which are false will not be
  13. /// present in the dictionary. See this link on how to construct a proper attributes string:
  14. /// https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtPropertyIntrospection.html
  15. - (NSDictionary *)propertyAttributes;
  16. @end