src/video/cocoa/SDL_cocoavideo.m
changeset 6616 4f272256d172
parent 6425 60c08d8896e0
child 6625 647ae2aa5674
equal deleted inserted replaced
6615:d7a463bde4d7 6616:4f272256d172
   216     }
   216     }
   217     return img;
   217     return img;
   218 }
   218 }
   219 
   219 
   220 /*
   220 /*
       
   221  * Mac OS X log support.
       
   222  *
       
   223  * This doesn't really have aything to do with the interfaces of the SDL video
       
   224  *  subsystem, but we need to stuff this into an Objective-C source code file.
       
   225  */
       
   226 
       
   227 void SDL_NSLog(const char *text)
       
   228 {
       
   229     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
       
   230 
       
   231     NSLog(@"%@", [[NSString alloc] initWithUTF8String:text]);
       
   232 
       
   233     [pool release];
       
   234 }
       
   235 
       
   236 /*
   221  * Mac OS X assertion support.
   237  * Mac OS X assertion support.
   222  *
   238  *
   223  * This doesn't really have aything to do with the interfaces of the SDL video
   239  * This doesn't really have aything to do with the interfaces of the SDL video
   224  *  subsystem, but we need to stuff this into an Objective-C source code file.
   240  *  subsystem, but we need to stuff this into an Objective-C source code file.
   225  */
   241  */