Differences From Artifact [2a6ad46c6d]:
- File src/MenuItem.m — part of check-in [d2f07d884a] at 2025-03-12 00:16:05 on branch trunk — Be more tolerant of invalid arguments (user: js, size: 783) [annotate] [blame] [check-ins using]
To Artifact [5ee318d452]:
- File src/MenuItem.m — part of check-in [89fbd7a152] at 2025-03-20 13:21:56 on branch trunk — Make more use of convenience methods (user: js, size: 916) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | + + + + + | #import "MenuItem.h" @implementation MenuItem + (instancetype)itemWithText:(OFString *)text action:(OFString *)action { return [[self alloc] initWithText:text action:action]; } - (instancetype)initWithText:(OFString *)text action:(OFString *)action { self = [super init]; _text = [text copy]; _action = [action copy]; |
︙ |