• 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: making things invisible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making things invisible


  • Subject: Re: making things invisible
  • From: Eyal Redler <email@hidden>
  • Date: Wed, 29 May 2002 01:58:53 +0300

> I want to be able to hide and show a control under program control.

What I did is to remove the control from the supeeview. (Don't forget to
retain it)

To Hide:
NSView* saveSuper=[control superview];
id saveControl=[control retain];
[saveControl removeFromSuperView];

To show:

[saveSuper addSubview:saveControl];
[saveControl release];


Hope this helps...


Eyal
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: making things invisible
      • From: Ondra Cada <email@hidden>
References: 
 >making things invisible (From: Paul Cezanne <email@hidden>)

  • Prev by Date: Pop-up Menus With Images
  • Next by Date: Button colours
  • Previous by thread: making things invisible
  • Next by thread: Re: making things invisible
  • Index(es):
    • Date
    • Thread