• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Do I need to relase @"string" ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Do I need to relase @"string" ??
      • From: Kyle Sluder <email@hidden>
    • Re: Do I need to relase @"string" ??
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Odd crash
  • Next by Date: Re: Do I need to relase @"string" ??
  • Previous by thread: Re: Odd crash-loading AppleScripts
  • Next by thread: Re: Do I need to relase @"string" ??
  • Index(es):
    • Date
    • Thread