No - I think it should be outside... It's setting the delegate (the object that receives messages) from the file dialog panel, so ita always needs to be set.