summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowmacosx-objc.mm
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-04-01 08:15:12 -0400
committerGeenz <geenz@geenzo.com>2013-04-01 08:15:12 -0400
commit2656b1f405dcf3b67d644bf47b02a64886ef2ca4 (patch)
tree9e4037a1a6bd0ecacc75fbe2de9eb6c0785a5f1b /indra/llwindow/llwindowmacosx-objc.mm
parent80a79e5d7b4f37f862b312e848b1d1e7f85b0fa9 (diff)
First pass at adding a viable replacement for TSM's old UseInputWindow method (which is now deprecated with seemingly no Cocoa replacement).
Diffstat (limited to 'indra/llwindow/llwindowmacosx-objc.mm')
-rw-r--r--indra/llwindow/llwindowmacosx-objc.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm
index 43f853bfd1..0eef8c9f83 100644
--- a/indra/llwindow/llwindowmacosx-objc.mm
+++ b/indra/llwindow/llwindowmacosx-objc.mm
@@ -362,6 +362,16 @@ void removeGLView(GLViewRef view)
[(LLOpenGLView*)view release];
}
+void setupInputWindow(NSWindowRef window, GLViewRef glview)
+{
+ [[(LLAppDelegate*)[NSApp delegate] inputView] setGLView:(LLOpenGLView*)glview];
+}
+
+void showInputWindow(bool show)
+{
+ [(LLAppDelegate*)[NSApp delegate] showInputWindow:show];
+}
+
NSWindowRef getMainAppWindow()
{
LLNSWindow *winRef = [(LLAppDelegate*)[[NSApplication sharedApplication] delegate] window];