On 23/01/2010, at 8:57 AM, David Blanton wrote:

I have two views that need to occupy the same space and have their visibility toggled via an action.

I first overlaid one on the other setting it hidden, all done in IB.

Then in code set one hidden the other visible at which time it dawned on me that one view was contained in the other and that hiding the containing view hide both.

So my question. "What is the 'proper' means of handling this situation?"

I could guess:

1. Remove View 1 from window content view
2. Add View 2 to window content view
3. Position View 2.


But this seems awkward.

Suggestions please.

-db

Use an NSTabView and make it tabless if required.

Ron
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to