Also this method will not work if the window is not opened. Use [self children] instead so pendingAdds are also considered.