Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leptos-null/classdumpruntime
Library to parse Objective-C classes at runtime
https://github.com/leptos-null/classdumpruntime
class-dump classdump objc-runtime objective-c
Last synced: 4 months ago
JSON representation
Library to parse Objective-C classes at runtime
- Host: GitHub
- URL: https://github.com/leptos-null/classdumpruntime
- Owner: leptos-null
- License: mit-0
- Created: 2019-12-21T05:51:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T16:17:47.000Z (10 months ago)
- Last Synced: 2024-10-13T11:36:27.617Z (4 months ago)
- Topics: class-dump, classdump, objc-runtime, objective-c
- Language: Objective-C
- Homepage:
- Size: 146 KB
- Stars: 51
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## ClassDumpRuntime
Create human readable interfaces from runtime Objective-C environments.
This library is intended to be compiled with Xcode or [Theos](https://github.com/theos/theos).
The library can be loaded into an Objective-C runtime to view class or protocol headers.Example:
```objc
CDClassModel *ortho = [CDClassModel modelWithClass:[NSOrthography class]];[ortho linesWithComments:NO synthesizeStrip:YES];
/*
@interface NSOrthography : NSObject@property (class, readonly) BOOL supportsSecureCoding;
@property (readonly, copy) NSString *dominantScript;
@property (readonly, copy) NSDictionary *languageMap;+ (id)orthographyWithDominantScript:(id)a0 languageMap:(id)a1;
+ (id)_scriptNameForScriptIndex:(unsigned long long)a0;
+ (void)initialize;
+ (id)allocWithZone:(struct _NSZone { } *)a0;- (id)initWithDominantScript:(id)a0 languageMap:(id)a1;
- (unsigned int)orthographyFlags;
- (id)dominantLanguage;
- (id)allScripts;
- (id)languagesForScript:(id)a0;
- (id)replacementObjectForPortCoder:(id)a0;
- (id)dominantLanguageForScript:(id)a0;
- (id)allLanguages;
- (id)initWithCoder:(id)a0;
- (void)encodeWithCoder:(id)a0;
- (BOOL)isEqual:(id)a0;
- (unsigned long long)hash;
- (id)description;
- (id)copyWithZone:(struct _NSZone { } *)a0;
- (Class)classForCoder;@end
*/[ortho linesWithComments:NO synthesizeStrip:NO];
/*
@interface NSOrthography : NSObject@property (class, readonly) BOOL supportsSecureCoding;
@property (readonly, copy) NSString *dominantScript;
@property (readonly, copy) NSDictionary *languageMap;+ (id)orthographyWithDominantScript:(id)a0 languageMap:(id)a1;
+ (id)_scriptNameForScriptIndex:(unsigned long long)a0;
+ (void)initialize;
+ (id)allocWithZone:(struct _NSZone { } *)a0;
+ (BOOL)supportsSecureCoding;- (id)initWithDominantScript:(id)a0 languageMap:(id)a1;
- (unsigned int)orthographyFlags;
- (id)dominantScript;
- (id)languageMap;
- (id)dominantLanguage;
- (id)allScripts;
- (id)languagesForScript:(id)a0;
- (id)replacementObjectForPortCoder:(id)a0;
- (id)dominantLanguageForScript:(id)a0;
- (id)allLanguages;
- (id)initWithCoder:(id)a0;
- (void)encodeWithCoder:(id)a0;
- (BOOL)isEqual:(id)a0;
- (unsigned long long)hash;
- (id)description;
- (id)copyWithZone:(struct _NSZone { } *)a0;
- (Class)classForCoder;@end
*/[ortho.protocols[1] linesWithComments:NO synthesizeStrip:YES];
/*
@protocol NSSecureCoding+ (BOOL)supportsSecureCoding;
@end
*/
```