Cant do integer == comparison
===

So i have a method that sets an integer: `-(void)setcurrentviewfromint:(int)currentint{` it is in a class called `MyView`. 
From my `viewDidLoad` method, i call it, and set it too 1:

    - (void)viewDidLoad
    {
        [super viewDidLoad];
        MyView *myview = [[MyView alloc]init];
        [myview setcurrentviewfromint:1];
    }

Then, in MyView.m, i have these classes: 

    -(void)setcurrentviewfromint:(int)currentint{
        currentview = currentint;
        NSLog("currentviewis:%d",currentview);
        [self setNeedsDisplay];
    }
    
    - (void)drawRect:(CGRect)rect {
        NSLog(@"drawRectCalled");
        if (currentview == 1) {
            NSLog(@"do something here");
            }
        }
    
    }

But the compiler prints out:
    
    2012-07-18 18:02:44.211 animation[76135:f803] 1
    2012-07-18 18:02:44.223 animation[76135:f803] drawRectCalled

But doesn't print "do something here" so any ideas why currentview doesnt equal 1?
any help would be greatly appreciated. I've been working for the past 6 hours of this.
