6 #include "IAlertBoxFactory.h"
7 #include "IInputBoxFactory.h"
8 #include "IKeyboardInputFactory.h"
9 #include "IKeyboardInputDismissedHandler.h"
10 #include "NativeUIFactories.h"
11 #include <Cocoa/Cocoa.h>
12 #include "ISingleOptionAlertBoxDismissedHandler.h"
13 #include "ISingleOptionAlertBox.h"
23 const std::string& messageText,
26 NSString *title = [NSString stringWithCString:titleText.c_str()
27 encoding:[NSString defaultCStringEncoding]];
29 NSString *message = [NSString stringWithCString:messageText.c_str()
30 encoding:[NSString defaultCStringEncoding]];
33 NSAlert *alert = [[NSAlert alloc] init];
34 [alert addButtonWithTitle:
@"OK"];
35 [alert setMessageText:title];
36 [alert setInformativeText:message];
42 handler.HandleAlertBoxDismissed();
54 const std::string& message,
57 return Eegeo_NEW(
OSXAlertBox)(title, message, handler);
64 const std::string& message,
65 const std::string& button,
66 const std::string& initialContent,
67 bool initialContentIsPlaceholder,
70 Eegeo_ASSERT(
false,
"%s not implemented", __FUNCTION__);
79 UI::NativeInput::KeyboardType keyboardType = UI::NativeInput::KeyboardTypeDefault,
80 UI::NativeInput::ReturnKeyType returnKeyType = UI::NativeInput::ReturnKeyDone)
82 Eegeo_ASSERT(
false,
"%s not implemented", __FUNCTION__);