Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Make SDL_uikitviewcontroller.window a real Objective-C property and s…
Browse files Browse the repository at this point in the history
…ynthesize
  • Loading branch information
keestux committed Sep 28, 2011
1 parent 886f96e commit 4a9a33d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/video/uikit/SDL_uikitviewcontroller.h
Expand Up @@ -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
7 changes: 5 additions & 2 deletions src/video/uikit/SDL_uikitviewcontroller.m
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4a9a33d

Please sign in to comment.