Coder Social home page Coder Social logo

baxiaxx / autodescribe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michalkonturek/autodescribe

0.0 2.0 0.0 587 KB

A category on NSObject which allows you to query information about an instance.

License: MIT License

Objective-C 95.83% Makefile 0.20% Ruby 0.09% C 0.45% Shell 3.44%

autodescribe's Introduction

AutoDescribe

Twitter License Build Status

AutoDescribe is a category on NSObject which allows you to query information about an instance.

This category extends NSObject with methods for acquisition of lists of properties and methods. It also enables objects to print their properties and values without the need of writing never-ending NSLog statements.

License

Source code of this project is available under the standard MIT license. Please see the license file.

Installation

The source files have been moved to MKFoundationKit pod.

  1. Add to your Podfile:

    pod 'MKFoundationKit/AutoDescribe'
    
  2. Import public header:

    #import <MKFoundationKit/NSObject+MK_AutoDescribe.h>
    

API

+ (NSArray *)mk_propertyList;
+ (NSArray *)mk_propertyList:(Class)clazz;

+ (NSArray *)mk_methodListOnly;
+ (NSArray *)mk_methodListOnly:(Class)clazz;

+ (NSArray *)mk_methodList;
+ (NSArray *)mk_methodList:(Class)clazz;

- (void)mk_printObject;
- (void)mk_printObjectKeys:(NSArray *)keys;

- (void)mk_printObjectMethods;
- (void)mk_printObjectMethodsOnly;

- (NSString *)mk_className;

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b new-feature).
  3. Commit your changes (git commit -am 'Added new-feature').
  4. Push to the branch (git push origin new-feature).
  5. Create new Pull Request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.