//
//  GSValidatingTextField.h
//  Glyphs
//
//  Created by Georg Seifert on 14.11.18.
//  Copyright © 2018 schriftgestaltung.de. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <GlyphsKit/GSAutoCompleteTextField.h>

NS_ASSUME_NONNULL_BEGIN

@interface GSValidatingTextField : GSAutoCompleteTextField <NSTextFieldDelegate>

@property (strong, nullable) NSString *errorHint;

@property (nullable, nonatomic, weak) IBOutlet NSView *extraButton;
@end

@protocol TextFieldValidation <NSObject>

- (BOOL)textFieldHasValidContent:(GSValidatingTextField *)textField;

@end

NS_ASSUME_NONNULL_END
