Posted By

espinallab on 04/19/10


Tagged

replaceObjectAtIndex


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

cdnicoll
umang_nine
rvachere
Tintenklecks
cnathan


Replacing object in an NSMutableArray


 / Published in: Objective C
 

URL: http://stackoverflow.com/questions/2114806/object-life-after-death-retain-count-0

  1. Event * anEvent = self.event;
  2.  
  3. ClubPlanetControllerAppDelegate * appDelegate = (ClubPlanetControllerAppDelegate *)[UIApplication sharedApplication].delegate;
  4.  
  5. [appDelegate.allEvents replaceObjectAtIndex:[appDelegate.allEvents indexOfObject:event] withObject:anEvent];

Report this snippet  

You need to login to post a comment.