Re: Collection of Cocoa & objc questions from a "newbie"
Re: Collection of Cocoa & objc questions from a "newbie"
- Subject: Re: Collection of Cocoa & objc questions from a "newbie"
- From: Markus Hitter <email@hidden>
- Date: Tue, 17 Jul 2001 12:59:15 +0200
Am Dienstag, 17. Juli 2001 um 06:35 schrieb tyler:
Then you are not explicitly releasing your dotview object.
Actually, I'm not explicitly creating it so I figured that the loadNib
or whatever that did the creation would take care of disposing of the
view when the window (?) was disposed of. Am I incorrect in this?
In the simple case, your nib gets loaded when the App launches and gets
unloaded when the App finishes.
When the App is about to finish, there's no point in releasing resources
(memory). If you want to clean up additional things like temporary
files, I'd use NSApplications -applicationShouldTerminate or something
in this area.
2) If I set breakpoints in the DotView custom View I see that several
methods are called twice (awakeFromNib and initWithFrame in
particular). It appears the the "self" value in the debugger has
changed
Sounds like you have actually two views. Did you perhaps duplicate you
view by accident?
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/