NSResponder - sloppy stringWithFormat.
Perspx ( ) .
-
( .h)
NSArray *truc; (assuming it won't be a property)
( .m)
NSString *stringMer = [[NSString alloc] initWithString:@"OK COOL"] ;
NSString *stringMer2 = [[NSString alloc] initWithString:@"OK COOL"];
truc = [[NSArray alloc] initWithObjects:stringMer,stringMer2, nil];
[stringMer release];
[stringMer2 release];
(then, down to dealloc)
[truc release]
It would be nice to become familiar with the tools - run for leaks.
inked source
share