Make more use of convenience methods
FossilOrigin-Name: 89fbd7a1520ecb65809b4c1bd10006ce9bb3a662cb7e7804abaf85d1ee1da63a
This commit is contained in:
parent
4bdb80410d
commit
34b31eb77f
44 changed files with 320 additions and 188 deletions
18
src/ConsoleLine.m
Normal file
18
src/ConsoleLine.m
Normal file
|
@ -0,0 +1,18 @@
|
|||
#import "ConsoleLine.h"
|
||||
|
||||
@implementation ConsoleLine
|
||||
+ (instancetype)lineWithText:(OFString *)text outtime:(int)outtime
|
||||
{
|
||||
return [[self alloc] initWithText:text outtime:outtime];
|
||||
}
|
||||
|
||||
- (instancetype)initWithText:(OFString *)text outtime:(int)outtime
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
_text = [text copy];
|
||||
_outtime = outtime;
|
||||
|
||||
return self;
|
||||
}
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue