Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. //
  2. // JSSettingsControllerPrivate.h
  3. //
  4. // Created by Jon on 10/16/10.
  5. // Copyright (c) 2010 Jonathan Sterling. All rights reserved.
  6. //
  7.  
  8. #import <objc/runtime.h>
  9.  
  10. namespace jssc
  11. {
  12. struct accessor_info_t
  13. {
  14. void *setter_ptr;
  15. void *getter_ptr;
  16. const char *setter_enc;
  17. const char *getter_enc;
  18. };
  19.  
  20. template <typename T>
  21. struct defaults_implementation;
  22.  
  23. template <typename T>
  24. accessor_info_t accessor_info();
  25. }
  26.  
  27. @interface JSSettingsController ()
  28. + (BOOL)selectorIsSetter:(SEL)aSelector;
  29. + (BOOL)selector:(SEL)aSelector isSetterForProperty:(NSString *)aProperty;
  30. + (BOOL)selector:(SEL)aSelector isGetterForProperty:(NSString *)aProperty;
  31. + (objc_property_t)propertyForSelector:(SEL)aSelector;
  32. + (NSString *)keyFromSetter:(SEL)aSetter;
  33. @end
Add Comment
Please, Sign In to add comment