--- a/cocoaTouch/OverlayViewController.m Sun Apr 11 01:04:54 2010 +0000
+++ b/cocoaTouch/OverlayViewController.m Sun Apr 11 03:43:13 2010 +0000
@@ -12,15 +12,20 @@
#import "CGPointUtils.h"
#import "SDL_mouse.h"
#import "PopoverMenuViewController.h"
+#import "CommodityFunctions.h"
@implementation OverlayViewController
@synthesize dimTimer, popoverController, popupMenu;
+-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
+ return rotationManager(interfaceOrientation);
+}
+
+
-(void) didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
-
// Release any cached data, images, etc that aren't in use.
}
@@ -48,10 +53,6 @@
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO];
}
--(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
- return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
-}
-
-(void) viewDidUnload {
[dimTimer invalidate];
self.dimTimer = nil;