diff --git a/Common.iphone/activegsEmulatorController.mm b/Common.iphone/activegsEmulatorController.mm index a0f7cb0..b0897b5 100644 --- a/Common.iphone/activegsEmulatorController.mm +++ b/Common.iphone/activegsEmulatorController.mm @@ -428,7 +428,7 @@ int x_lock_zoom = 0; [self.zv setUserInteractionEnabled:TRUE]; - self.kbdc = [KBDController alloc]; + self.kbdc = [[KBDController alloc] init]; [self.contentView addSubview:self.kbdc.view]; self.view = self.contentView; diff --git a/Common.iphone/activegsList.mm b/Common.iphone/activegsList.mm index dc662b0..9bf2e0f 100644 --- a/Common.iphone/activegsList.mm +++ b/Common.iphone/activegsList.mm @@ -376,7 +376,7 @@ static UIImage* defaultImageII = nil; for(int i=0;ielement = el; @@ -690,7 +690,7 @@ static NSInteger compareImagesUsingSelector(id p1, id p2, void *context) - AsyncImageView* asyncImage = [AsyncImageView alloc]; + AsyncImageView* asyncImage = [[AsyncImageView alloc] init]; float s = [pManager resolutionRatio]*[pManager dpiRatio]; [asyncImage initImage:ic->element->thumb.c_str() target:cell.imageView width:64*s height:40*s]; // [asyncImage performSelectorOnMainThread:@selector(loadImage:) withObject:nil waitUntilDone:NO]; diff --git a/Common.iphone/activegsViewController.mm b/Common.iphone/activegsViewController.mm index 6f6764e..6e9e80f 100644 --- a/Common.iphone/activegsViewController.mm +++ b/Common.iphone/activegsViewController.mm @@ -153,7 +153,7 @@ self.tabView.delegate = self; NSString *imgSource; - self.l0 = [activegsList alloc]; + self.l0 = [[activegsList alloc] init]; //imgSource = [[NSBundle mainBundle] pathForResource:@ACTIVEGS_FIRSTTABLIST ofType:@"activegsxml"] ; self.l0->listPath = pManager->firstTabXML.c_str(); self.l0->filter= ALL_NO_INDEX ; @@ -165,14 +165,14 @@ [self.l0.view setFrame:r]; [self.view addSubview:self.l0.view]; #else - activegsList* l3 = [activegsList alloc]; + activegsList* l3 = [[activegsList alloc] init]; l3->listPath = "http://www.freetoolsassociation.com/xml/list.activegsxml"; l3->versionPath = "http://www.freetoolsassociation.com/xml/version.dat"; l3->filter= ALL; l3.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"FTA Website" image:[UIImage imageWithContentsOfFile: imgSource] tag:0]; ; l3->trackerName = "FTA"; - activegsList* l1 = [activegsList alloc]; + activegsList* l1 = [[activegsList alloc] init]; l1->listPath = "http://www.virtualapple.org/xmlfiles/list.zip"; l1->versionPath = "http://www.virtualapple.org/xmlfiles/version.dat"; l1->filter = ONLY_APPLE2 ; @@ -180,7 +180,7 @@ /*NSString */imgSource = [[NSBundle mainBundle] pathForResource:@"Tab][" ofType:@"png"]; l1.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Apple II" image:[UIImage imageWithContentsOfFile: imgSource] tag:0]; - activegsList* l2 = [activegsList alloc]; + activegsList* l2 = [[activegsList alloc] init]; l2->listPath = "http://www.virtualapple.org/xmlfiles/list.zip";; // l2.title = @"Apple IIGS"; l2->filter = ONLY_2GS; @@ -191,7 +191,7 @@ #ifndef ACTIVEGS_ENABLE_DOCUMENT self.docList= nil; #else - self.docList = [activegsList alloc]; + self.docList = [[activegsList alloc] init]; self.docList->listPath.Empty(); self.docList->filter = (int)(ALL_NO_INDEX|DOC_LIST); self.docList->trackerName = "My2GS"; diff --git a/Common.iphone/detailViewController.mm b/Common.iphone/detailViewController.mm index 0c28f05..e0e206e 100644 --- a/Common.iphone/detailViewController.mm +++ b/Common.iphone/detailViewController.mm @@ -84,15 +84,15 @@ self.screenShot2.image = nil; self.screenShot3.image = nil; - AsyncImageView* asyncImage1 = [AsyncImageView alloc] ; + AsyncImageView* asyncImage1 = [[AsyncImageView alloc] init]; [asyncImage1 initImage:self->diskSelected->screenShots[0].c_str() target:self.screenShot1 width:128 height:80]; [asyncImage1 loadImage:nil]; - AsyncImageView* asyncImage2 = [AsyncImageView alloc]; + AsyncImageView* asyncImage2 = [[AsyncImageView alloc] init]; [asyncImage2 initImage:self->diskSelected->screenShots[1].c_str() target:self.screenShot2 width:128 height:80]; [asyncImage2 loadImage:nil]; - AsyncImageView* asyncImage3 = [AsyncImageView alloc] ; + AsyncImageView* asyncImage3 = [[AsyncImageView alloc] init] ; [asyncImage3 initImage:self->diskSelected->screenShots[2].c_str() target:self.screenShot3 width:128 height:80]; [asyncImage3 loadImage:nil];