Hey guys,
I'm having a problem with applicationWillTerminate. What I need to do is run something once when the program exits, like applicationWillTerminate is supposed to do but it's not being called. I've set NSApp's delegate in the awakeFromNib of course but no luck.
I tried moving the delegation to other methods just to see what would happen and that triggers applicationWillTerminate, but, also crashes out with an error .
Will ALL the objects have there dealloc called when the program exits or is it a cold shutdown, giving the memory over to other processes?
If this is the case then this must happen after I/O has been dismantled because NSLog never displays anything in my tests, so confused . I don't do a lot with Cocoa because I generally have no need for GUI's so I work more with other languages. Is this a Newbie problem I'm having?
Thanks a lot,
Mark.
I'm having a problem with applicationWillTerminate. What I need to do is run something once when the program exits, like applicationWillTerminate is supposed to do but it's not being called. I've set NSApp's delegate in the awakeFromNib of course but no luck.
I tried moving the delegation to other methods just to see what would happen and that triggers applicationWillTerminate, but, also crashes out with an error .
Will ALL the objects have there dealloc called when the program exits or is it a cold shutdown, giving the memory over to other processes?
If this is the case then this must happen after I/O has been dismantled because NSLog never displays anything in my tests, so confused . I don't do a lot with Cocoa because I generally have no need for GUI's so I work more with other languages. Is this a Newbie problem I'm having?
Thanks a lot,
Mark.