Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I swap views?



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.
References: 
 >How do I swap views? (From: Dave Riggle <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.