mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-03-26 15:08:28 -06:00
- 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
21 lines
548 B
Objective-C
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__
|