Forgive me if this has been asked, and I did not perform a good enough search on SO.
I am doing the following to enumerate over an array of subviews, while removing each subview from its superview:
for( NSView *subview in [[self subviews] copy])
{
[subview removeFromSuperview];
}
It works fine, but is there a more appropriate way to implement this loop, rather than simply copying the array?