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

How do I swap views?


  • Subject: How do I swap views?
  • From: Dave Riggle <email@hidden>
  • Date: Tue, 2 Sep 2003 21:45:37 -0700

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.

Dave
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do I swap views?
      • From: Scott Anguish <email@hidden>
    • Frameworks (dylib) Within The App Bundle
      • From: Pei Xiang <email@hidden>
  • Prev by Date: Re: Menu items validation woes...
  • Next by Date: Frameworks (dylib) Within The App Bundle
  • Previous by thread: webFrameView as print view?
  • Next by thread: Frameworks (dylib) Within The App Bundle
  • Index(es):
    • Date
    • Thread