FROM : Randall Meadows
DATE : Fri Mar 21 22:11:28 2008
I'm trying to do some cleanup work when my app terminates*. I have
the appropriate code to do said cleanup in one of my dealloc methods.
I'm finding that when I quit the app (cmd-Q), NONE of my dealloc
methods are being called (I have breakpoints set of every one of them,
and not a single one is being called).
Now, I've implemented NSApplication's -applicationWillTerminate:
delegate method, and thankfully it *is* being called, so I s'pose I
can do what I need to do there, but...why aren't any of the dealloc
methods being hit?
Thanks!
randy
* - One of my objects holds onto a connection to an external camera;
without properly closing this connection, the camera cannot be
operated manually without first disconnecting it from the computer, so
I want to be nice and clean things up.
DATE : Fri Mar 21 22:11:28 2008
I'm trying to do some cleanup work when my app terminates*. I have
the appropriate code to do said cleanup in one of my dealloc methods.
I'm finding that when I quit the app (cmd-Q), NONE of my dealloc
methods are being called (I have breakpoints set of every one of them,
and not a single one is being called).
Now, I've implemented NSApplication's -applicationWillTerminate:
delegate method, and thankfully it *is* being called, so I s'pose I
can do what I need to do there, but...why aren't any of the dealloc
methods being hit?
Thanks!
randy
* - One of my objects holds onto a connection to an external camera;
without properly closing this connection, the camera cannot be
operated manually without first disconnecting it from the computer, so
I want to be nice and clean things up.
| Related mails | Author | Date |
|---|---|---|
| Randall Meadows | Mar 21, 22:11 | |
| John Stiles | Mar 21, 22:23 | |
| Nick Zitzmann | Mar 21, 22:26 | |
| Randall Meadows | Mar 21, 22:54 | |
| Kyle Sluder | Mar 22, 00:43 | |
| mmalc crawford | Mar 22, 01:33 |






Cocoa mail archive

