Re: How do I swap views?
Re: How do I swap views?
- Subject: Re: How do I swap views?
- From: Scott Anguish <email@hidden>
- Date: Wed, 3 Sep 2003 02:18:19 -0400
On Sep 3, 2003, at 12:45 AM, Dave Riggle wrote:
I'm a Cocoa newbie. I have an NSMatrix subclass inside an
NSScrollView. I want to be able to hide the whole thing and make
visible an NSTableView that occupies the same space. What's the best
way to go about it? Should I have everything in the same window and
hide/show the appropriate view? Is there a more elegant solution? I
don't want to use a tabbed view because I already have toolbar icons
that switch among the (several) matrix views and the table view. My
controller object has its meaty hooks all over my NSMatrix subclass
and will probably need to do the same for my NSTableView, so using
separate NIBs doesn't seem practical.
look at the NSTabView class. You can use it without the tabs being
visible, specifying another switching action (like your toolbars!)
_______________________________________________
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.