Why is dalloc not called on a brand new project (xcode 3.1.4)?


I am starting to learn iPhone programming and this should be apparently a very easy question. I work in xcode 3.1.4. Now, when I create a new project of a window-based application and modify dealloc (in the AppDelegate.m file) so that it actually makes a print statement on the console, I actually can not see that statement. So, my question is why?

So that I can avoid obvious answers, the modified dealloc is:

- (void)dealloc {
    NSLog(@"Dealloc is called");
    [window release];
    [super dealloc];

Is this strange or not?

Originally I had posted similar questions here, but now I know that the real problem is the one I describe here. Moderators, feel free to delete my other thread. My apologies.

The appDelegate won't be deallocated until the application ends, at which point it's too late to see messages on the console.

Also, for any new projects, you should use ARC anyway, which removes the need to call dealloc in a lot of cases.