Can anyone explain to me why class object still exist after release. Here is the code
#import <Foundation/Foundation.h>
#import "MyClass.h"
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
MyClass *class = [[MyClass alloc] init];
NSLog(@"%@", [class showMouse]);
NSLog(@"%@", [class printKbd]);
[class release];
NSLog(@"%@", [class printKbd]);
//still exist
[pool drain];
return 0;
}