Xcode/TemplatesForXcode/SDL Custom Cocoa Application/MyCustomWindow.h
changeset 2220 4d2d0548f5b2
parent 2213 59a667370c57
equal deleted inserted replaced
2219:f6099efa3f0b 2220:4d2d0548f5b2
     9 #import <AppKit/AppKit.h>
     9 #import <AppKit/AppKit.h>
    10 
    10 
    11 // Be a subclass of SDL_QuartzWindow so SDL will
    11 // Be a subclass of SDL_QuartzWindow so SDL will
    12 // handle the redraw problems when minimizing the window
    12 // handle the redraw problems when minimizing the window
    13 // This class is defined in SDL.framework
    13 // This class is defined in SDL.framework
    14 @ interface SDL_QuartzWindow:NSWindow @ end
    14 @interface SDL_QuartzWindow : NSWindow
       
    15 @end
       
    16 
    15 // Also assign SDL_QuartzWindowDelegate to the window
    17 // Also assign SDL_QuartzWindowDelegate to the window
    16 // to perform other tasks. You can subclass this delegate
    18 // to perform other tasks. You can subclass this delegate
    17 // if you want to add your own delegation methods
    19 // if you want to add your own delegation methods
    18 // This class is defined in SDL.framework
    20 // This class is defined in SDL.framework
    19 @ interface SDL_QuartzWindowDelegate:NSObject @ end
    21 @interface SDL_QuartzWindowDelegate : NSObject
       
    22 @end
       
    23 
    20 // Declare our custom class
    24 // Declare our custom class
    21 @ interface MyCustomWindow:SDL_QuartzWindow @ end
    25 @interface MyCustomWindow : SDL_QuartzWindow
       
    26 @end
       
    27