Mercurial > sdl-ios-xcode
view src/video/quartz/SDL_QuartzWindow.m @ 58:bd6b0a910a65
* Removed fullscreen menu option from the "Window" menu
* Updated the BUGS file
* Fixed command line parameters when launched from Finder
* Implemented setting the icon window caption
* Implemented frameless style windows
* Added note about SDL_RESIZABLE implementation to SDL_QuartzVideo.m
* Window close requests now go through the event filtering system
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Mon, 11 Jun 2001 06:44:43 +0000 |
parents | ce9cd2cf0d0d |
children | d1447a846d80 |
line wrap: on
line source
/* Subclass of NSWindow to allow customization if we need it */ @interface SDL_QuartzWindow : NSWindow {} - (void)miniaturize:(id)sender; - (void)deminiaturize:(id)sender; - (void)display; @end @implementation SDL_QuartzWindow /* These methods should be rewritten to fix the miniaturize bug */ - (void)miniaturize:(id)sender { [ super miniaturize:sender ]; } - (void)deminiaturize:(id)sender { [ super deminiaturize:sender ]; } - (void)display { /* Do nothing to keep pinstripe pattern from drawing */ } @end /* Delegate for our NSWindow to send SDLQuit() on close */ @interface SDL_QuartzWindowDelegate : NSObject {} - (BOOL)windowShouldClose:(id)sender; @end @implementation SDL_QuartzWindowDelegate - (BOOL)windowShouldClose:(id)sender { SDL_PrivateQuit(); return NO; } @end