Re: Removing everything from a NSView
Re: Removing everything from a NSView
- Subject: Re: Removing everything from a NSView
- From: Daniel Todd Currie <email@hidden>
- Date: Tue, 21 Sep 2004 01:27:51 -0700
something like this should suffice:
id mySubview;
NSEnumerator *viewEnumerator = [[myView subviews] objectEnumerator];
while((mySubview = [viewEnumerator nextObject]))
{
[mySubview release];
// or perhaps
[mySubview removeFromSuperview];
}
-- DTC
On 2004 Sep 21, at 00:43, Peter Karlsson wrote:
Dear list!
I have programatically added a couple of objects to a NSView, some
sliders, buttons and things like that. How do I remove everything from
the view?
Best regards Peter
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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
_______________________________________________
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