hostile-takeover/game/sdl/mac/inputcontroller.h
Nathan Fulton fff71efc11 SDL-OSX port improvements
- Add chatroom
- Add string input
- Update main() to support SDL2
- Change game files location to
~/Library/ApplicationSupport/HostileTakeover
- Open URLs with OS’s default browser
- Use Xcode default C/C++Objective-C compiler
- Remove game/sdl/mac/SDL.framework
- Use game/sdl/SDL2/osx/SDL2.framework
2016-08-24 16:19:45 -04:00

21 lines
548 B
Objective-C

#ifndef __INPUTCONTROLLER_H__
#define __INPUTCONTROLLER_H__
#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
@interface InputController : NSObject <NSAlertDelegate, NSTextFieldDelegate> {
NSString *title_;
NSString *default_string_;
BOOL secure_;
NSAlert *alert_view_;
int cchMax_;
NSString *ask_;
}
- (void)showInputAlertWithTitle:(NSString *)title defaultText:(NSString *)default_string maxChars:(int)cchMax secure:(BOOL)secure;
- (NSString *)askString;
@end
#endif // __INPUTCONTROLLER_H__