Do I need to relase @"string" ??
Do I need to relase @"string" ??
- Subject: Do I need to relase @"string" ??
- From: James Cicenia <email@hidden>
- Date: Mon, 2 Mar 2009 14:58:47 -0600
hello
Here is my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:
(NSIndexPath *)indexPath {
WhatsFreshAppDelegate *appDelegate = (WhatsFreshAppDelegate *)
[[UIApplication sharedApplication] delegate];
if(indexPath.row == 0){
[appDelegate setCurrentMiles:@"200"];
}else if(indexPath.row==1){
[appDelegate setCurrentMiles:@"500"];
}else if(indexPath.row==2){
[appDelegate setCurrentMiles:@"1000"];
}else if(indexPath.row==3){
[appDelegate setCurrentMiles:@"1500"];
}else if(indexPath.row==4){
[appDelegate setCurrentMiles:@"2000"];
}else if(indexPath.row==5){
[appDelegate setCurrentMiles:@"2500"];
}else if(indexPath.row==6){
[appDelegate setCurrentMiles:@"5000"];
}else if(indexPath.row==7){
[appDelegate setCurrentMiles:@"10000"];
}
[appDelegate setupStateDisplay:[appDelegate currentLatitude]
longString:[appDelegate currentLongitude] milesString:[appDelegate
currentMiles]];
[appDelegate refreshLocation:TRUE];
[(MyLocationViewController *)myParentController resetMiles];
}
DO I HAVE TO WORRY ABOUT RELEASING currentMiles somewhere?
Thanks
James Cicenia
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden