Re: NSAlert boxes ...
Hi Peter,toggle quoted messageShow quoted text
FWIW, I’ve always done exactly the same as this too, and have never had an issue.
My understanding (which may be wrong) is that the modal loop that runs the alert temporarily retains it, so you are safe no matter whether the alert is released by you afterwards, or autoreleased.
The point is, your code follows the normal rules. There’s no special case for NSAlert or other modal dialogs, because internal code behind the scenes makes sure the normal rules apply.