# HG changeset patch # User Holmes Futrell # Date 1217351963 0 # Node ID 3d0b3a7d3bea6cfb1050c5136a44a5bcf4748741 # Parent 18cb44c5b2216e1c97a55430f3d32138279b37e8 Added keyboard support in view initialization and proper deallocation of keyboard in -(void)dealloc, if keyboard is enabled diff -r 18cb44c5b221 -r 3d0b3a7d3bea src/video/uikit/SDL_uikitview.m --- a/src/video/uikit/SDL_uikitview.m Tue Jul 29 17:09:29 2008 +0000 +++ b/src/video/uikit/SDL_uikitview.m Tue Jul 29 17:19:23 2008 +0000 @@ -19,11 +19,16 @@ Sam Lantinga slouken@libsdl.org */ + #import "SDL_uikitview.h" +#import "SDL_uikitkeyboard.h" @implementation SDL_uikitview - (void)dealloc { +#if SDL_IPHONE_KEYBOARD + [textField release]; +#endif [super dealloc]; } @@ -31,13 +36,17 @@ self = [super initWithFrame: frame]; +#if SDL_IPHONE_KEYBOARD + [self initializeKeyboard]; +#endif + int i; for (i=0; i