2016-08-12 15:32:42 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
2016-10-22 18:25:43 +03:00
|
|
|
@import Foundation;
|
2016-08-12 15:32:42 +03:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface NeoVimBuffer : NSObject <NSCoding>
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NSUInteger handle;
|
|
|
|
@property (nonatomic, retain, nullable) NSString *fileName;
|
2016-10-22 18:35:36 +03:00
|
|
|
@property (nonatomic, readonly) bool isDirty;
|
|
|
|
@property (nonatomic, readonly) bool isCurrent;
|
|
|
|
@property (nonatomic, readonly) bool isTransient;
|
2016-08-12 15:32:42 +03:00
|
|
|
|
|
|
|
- (instancetype)initWithHandle:(NSUInteger)handle
|
|
|
|
fileName:(NSString * _Nullable)fileName
|
|
|
|
dirty:(bool)dirty
|
|
|
|
current:(bool)current;
|
|
|
|
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder;
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)coder;
|
|
|
|
|
|
|
|
- (NSString *)description;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|