Re: making things invisible
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.