Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make SDL_uikitviewcontroller.window a real Objective-C property and s…

…ynthesize
  • Loading branch information
keestux committed Sep 28, 2011
1 parent 886f96e commit 4a9a33d520cc202ca3c31fafea26fbb9d235e6bc
Showing with 9 additions and 2 deletions.
  1. +4 −0 src/video/uikit/SDL_uikitviewcontroller.h
  2. +5 −2 src/video/uikit/SDL_uikitviewcontroller.m
@@ -27,8 +27,12 @@
@private
SDL_Window *window;
}

@property (readwrite) SDL_Window *window;

- (id)initWithSDLWindow:(SDL_Window *)_window;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
- (void)loadView;
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;

@end
@@ -33,12 +33,15 @@

@implementation SDL_uikitviewcontroller

@synthesize window;

- (id)initWithSDLWindow:(SDL_Window *)_window
{
if ((self = [self init]) == nil) {
self = [self init];
if (self == nil) {
return nil;
}
self->window = _window;
self.window = _window;
return self;
}

0 comments on commit 4a9a33d

Please sign in to comment.