Differences From Artifact [bdc2f1f706]:
- File src/Menu.m — part of check-in [f17992369e] at 2025-03-06 00:34:42 on branch trunk — Clean up menus and text drawing (user: js, size: 195) [annotate] [blame] [check-ins using]
To Artifact [e5fbce3936]:
- File src/Menu.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: 288) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 | #import "Menu.h" @implementation Menu - (instancetype)initWithName:(OFString *)name { self = [super init]; _name = [name copy]; _items = [[OFMutableArray alloc] init]; | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #import "Menu.h" @implementation Menu + (instancetype)menuWithName:(OFString *)name { return [[self alloc] initWithName:name]; } - (instancetype)initWithName:(OFString *)name { self = [super init]; _name = [name copy]; _items = [[OFMutableArray alloc] init]; |
︙ | ︙ |