I think this is my first question. I always seem to find answers without ever having to ask, 'till now:
I have a web view in a window that is working just fine with a URL field hooked up and everything, following the tutorial in Shane’s wonderful book. The problem I’m having is when I close the window and re-eopen it, the web view is blank and it no longer loads. I think I’ve tried every combination of window behavior and memory options in IB.
I came up with a workaround but I’d still be interested in understanding why this happens. I rebuilt it just to see if I did something wrong and got the same result. The difference from the tutorial is that the webview and toolbar are in a second window separate from the main application window.
I disabled the close button and added my own button that I connected to orderOut: instead of performClose: which I assume is what the close button does. Now it performs as expected but it has an odd blemish of a disabled close button and a button next to it that says “Close”. Kind of like one of those cars you see with a broken tail-light and a trailer tail-light duct-taped over it.
Yes, tried all those buttons on and off. I think Release When Closed should be renamed Make Window Useless. I guess I don’t understand what it’s supposed to do.
I believe release when closed refers to the memory for the window. As in “release the memory” so the window does not exist any more (not just “invisible”) and must be re-instantiated from fresh.