NSString+ObjcRuntime.h 861 B

123456789101112131415161718192021222324
  1. //
  2. // NSString+ObjcRuntime.h
  3. // FLEX
  4. //
  5. // Derived from MirrorKit.
  6. // Created by Tanner on 7/1/15.
  7. // Copyright (c) 2020 FLEX Team. 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. ///
  16. /// Note: this method doesn't work properly for certain type encodings, and neither does
  17. /// the property_copyAttributeValue function in the runtime itself. Radar: FB7499230
  18. - (NSDictionary *)propertyAttributes;
  19. @end