The StackOverflow question "using static keyword in objective-c when defining a cached variable" references code from Example 4 of Xcode's TableViewSuite that defines a static NSDateFormatter
and calls alloc
but never calls release
.
Shouldn't static
variables be released? If yes, where in the code should they be released? If no, why not?