Search code examples
iphoneobjective-cnsstringretain

How can I make sure nothing gets autoreleased?


I need a way to create variables that are accessible for the entire time my custom class is initiated to when I call the release function. I need to retain a NSDate and a NSString.


Solution

  • Send the variable a retain message.