• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing everything from a NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing everything from a NSView


  • Subject: Re: Removing everything from a NSView
  • From: Martin Wennerberg <email@hidden>
  • Date: Tue, 21 Sep 2004 10:28:51 +0200

- (void) removeAllSubviews:(NSView *)view
{
	while ([[view subviews] count] > 0)
		[[[view subviews] lastObject] removeFromSuperview];
}

/Martin W

21 Sep 2004 kl. 09:43 skrev Peter Karlsson:

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:
email@hidden


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
  • Follow-Ups:
    • Re: Removing everything from a NSView
      • From: Peter Maurer <email@hidden>
References: 
 >Removing everything from a NSView (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: Removing everything from a NSView
  • Next by Date: Re: Removing everything from a NSView
  • Previous by thread: Re: Removing everything from a NSView
  • Next by thread: Re: Removing everything from a NSView
  • Index(es):
    • Date
    • Thread