This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for GLKView, GLKViewController and UITapGestureRecogniz…
…er instances
- Loading branch information
Adrian Kosmaczewski
committed
Nov 7, 2011
1 parent
ff2ffac
commit 64a803b
Showing
10 changed files
with
239 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// GLKViewControllerProcessor.h | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "UIViewControllerProcessor.h" | ||
|
||
@interface GLKViewControllerProcessor : UIViewControllerProcessor | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// GLKViewControllerProcessor.m | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "GLKViewControllerProcessor.h" | ||
#import "NSNumber+Nib2ObjcExtensions.h" | ||
|
||
@implementation GLKViewControllerProcessor | ||
|
||
- (void)dealloc | ||
{ | ||
[super dealloc]; | ||
} | ||
|
||
- (NSString *)getProcessedClassName | ||
{ | ||
return @"GLKViewController"; | ||
} | ||
|
||
- (void)processKey:(id)item value:(id)value | ||
{ | ||
if ([item isEqualToString:@"pauseOnWillResignActive"]) | ||
{ | ||
[output setObject:[value booleanString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"preferredFramesPerSecond"]) | ||
{ | ||
[output setObject:[value intString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"resumeOnDidBecomeActive"]) | ||
{ | ||
[output setObject:[value booleanString] forKey:item]; | ||
} | ||
else | ||
{ | ||
[super processKey:item value:value]; | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// GLKViewProcessor.h | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "UIViewProcessor.h" | ||
|
||
@interface GLKViewProcessor : UIViewProcessor | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// GLKViewProcessor.m | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "GLKViewProcessor.h" | ||
#import "NSNumber+Nib2ObjcExtensions.h" | ||
|
||
@implementation GLKViewProcessor | ||
|
||
- (void)dealloc | ||
{ | ||
[super dealloc]; | ||
} | ||
|
||
- (NSString *)getProcessedClassName | ||
{ | ||
return @"GLKView"; | ||
} | ||
|
||
- (void)processKey:(id)item value:(id)value | ||
{ | ||
if ([item isEqualToString:@"drawableColorFormat"]) | ||
{ | ||
[output setObject:[value drawableColorFormatString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"drawableDepthFormat"]) | ||
{ | ||
[output setObject:[value drawableDepthFormatString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"drawableMultisample"]) | ||
{ | ||
[output setObject:[value drawableMultisampleString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"drawableStencilFormat"]) | ||
{ | ||
[output setObject:[value drawableStencilFormatString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"enableSetNeedsDisplay"]) | ||
{ | ||
[output setObject:[value booleanString] forKey:item]; | ||
} | ||
else | ||
{ | ||
[super processKey:item value:value]; | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// UITapGestureRecognizerProcessor.h | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "UIGestureRecognizerProcessor.h" | ||
|
||
@interface UITapGestureRecognizerProcessor : UIGestureRecognizerProcessor | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// UITapGestureRecognizerProcessor.m | ||
// nib2objc | ||
// | ||
// Created by Adrian Kosmaczewski on 11/7/11. | ||
// Copyright (c) 2011 akosma software. All rights reserved. | ||
// | ||
|
||
#import "UITapGestureRecognizerProcessor.h" | ||
#import "NSNumber+Nib2ObjcExtensions.h" | ||
|
||
@implementation UITapGestureRecognizerProcessor | ||
|
||
- (void)dealloc | ||
{ | ||
[super dealloc]; | ||
} | ||
|
||
- (NSString *)getProcessedClassName | ||
{ | ||
return @"UITapGestureRecognizer"; | ||
} | ||
|
||
- (void)processKey:(id)item value:(id)value | ||
{ | ||
if ([item isEqualToString:@"numberOfTapsRequired"]) | ||
{ | ||
[output setObject:[value intString] forKey:item]; | ||
} | ||
else if ([item isEqualToString:@"numberOfTouchesRequired"]) | ||
{ | ||
[output setObject:[value intString] forKey:item]; | ||
} | ||
else | ||
{ | ||
[super processKey:item value:value]; | ||
} | ||
} | ||
|
||
@end |