title: Can a UIAlertView pass a string and an int through a delegate
body: <p>I have a UIAlertView (several, in fact), and I'm using the method <code>-(void)alertView:(UIAlertView *)alertView  clickedButtonAtIndex:(NSInteger)buttonIndex</code> to trigger an action if the user doesn't press cancel. Here's my code:</p>
  
  <pre><code>- (void)doStuff {   
          // complicated time consuming code here to produce:
          NSString *mySecretString = [self complicatedRoutine];
          int myInt = [self otherComplicatedRoutine];
  
          UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"HERE'S THE STUFF" 
                                                          message:myPublicString // derived from mySecretString
                                                         delegate:nil 
                                                cancelButtonTitle:@"Cancel" 
                                                otherButtonTitles:@"Go On", nil];
          [alert setTag:3];
          [alert show];
          [alert release];        
      }
  </code></pre>
  
  <p>and then what I would like to do would be the following:</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView 
  clickedButtonAtIndex:(NSInteger)buttonIndex
  {
      if (buttonIndex == 1) {
          if ([alertView tag] == 3) {
                          NSLog(@"%d: %@",myInt,mySecretString);
          }
      }
  }
  </code></pre>
  
  <p>However, this method doesn't know about <code>mySecretString</code> or <code>myInt</code>. I definitely don't want to recalculate them, and I don't want to store them as properties since <code>-(void)doStuff</code> is rarely, if ever, called. Is there a way to add this extra information to the UIAlertView to avoid recalculating or storing <code>mySecretString</code> and <code>myInt</code>?</p>
  
  <p>Thanks!</p>