src/video/cocoa/SDL_cocoavideo.m
changeset 6616 4f272256d172
parent 6425 60c08d8896e0
child 6625 647ae2aa5674
--- a/src/video/cocoa/SDL_cocoavideo.m	Tue Oct 30 12:21:15 2012 -0700
+++ b/src/video/cocoa/SDL_cocoavideo.m	Tue Oct 30 12:30:02 2012 -0700
@@ -218,6 +218,22 @@
 }
 
 /*
+ * Mac OS X log support.
+ *
+ * This doesn't really have aything to do with the interfaces of the SDL video
+ *  subsystem, but we need to stuff this into an Objective-C source code file.
+ */
+
+void SDL_NSLog(const char *text)
+{
+    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+    NSLog(@"%@", [[NSString alloc] initWithUTF8String:text]);
+
+    [pool release];
+}
+
+/*
  * Mac OS X assertion support.
  *
  * This doesn't really have aything to do with the interfaces of the SDL video