I am working on some Cocoa exercise for beginners. Asking this because applications like iTunes do not really terminate when their red buttons are clicked. I have a NSPanel object with the "release when close" option checked. An IBOutlet variable is set up to point to the NSPanel object using IB. When the NSPanel object is closed by the red button, the pointer variable is assigned "nil" by a delegate method. When the pointer is "nil", the user could load the NSPanel's nib file again (using loadNibName indirectly) and redisplay the panel.
My question is : if the NSPanel object is not fully removed when closed then would memory be wasted when the NSPanel's nib file is being loaded the second time ? (since the panel is an "About Panel" and there should only be one such window on display. And its nib file is being loaded twice...)