Adopt objc direct attributes where possible.
This commit is contained in:
66 files changed
+223
-131
No files matched your search
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MP42Utilities.h"
|
||||
|
||||
#define kStyleBold 1
|
||||
#define kStyleItalic 2
|
||||
@@ -26,7 +27,8 @@ typedef struct rgba_color {
|
||||
rgba_color make_color(u_int8_t r, u_int8_t g, u_int8_t b, u_int8_t a);
|
||||
int compare_color(rgba_color c1, rgba_color c2);
|
||||
|
||||
@interface MP42Style : NSObject
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42Style : NSObject<NSCopying>
|
||||
|
||||
- (instancetype)initWithStyle:(NSInteger)style type:(NSInteger)type location:(NSUInteger) location color:(rgba_color) color;
|
||||
|
||||
@@ -38,6 +40,7 @@ int compare_color(rgba_color c1, rgba_color c2);
|
||||
|
||||
@end
|
||||
|
||||
MP42_OBJC_DIRECT_MEMBERS
|
||||
@interface MP42HtmlParser : NSObject
|
||||
|
||||
@property (nonatomic, readonly) NSString *text;
|
||||
|
||||
Reference in new issue
Block a user