• 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: How do I swap views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: ObjC/Cocoa/PB/IB vs. C#/.NET/er,something
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: Re: Frameworks (dylib) Within The App Bundle
  • Next by thread: ObjC/Cocoa/PB/IB vs. C#/.NET/er,something
  • Index(es):
    • Date
    • Thread