Re: Removing everything from a NSView
Re: Removing everything from a NSView
- Subject: Re: Removing everything from a NSView
- From: Peter Maurer <email@hidden>
- Date: Tue, 21 Sep 2004 10:42:20 +0200
- (void)removeAllSubviews {
[[NSArray arrayWithArray: [self subviews]] makeObjectsPerformSelector:
@selector(removeFromSuperviewWithoutNeedingDisplay)];
[self setNeedsDisplay: YES];
}
From the documentation: "Unlike its counterpart, removeFromSuperview,
this method can be safely invoked during display."
Cheers,
Peter Maurer.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden