• 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
Swapping subview of NSSplitView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swapping subview of NSSplitView


  • Subject: Swapping subview of NSSplitView
  • From: Dan Munk <email@hidden>
  • Date: Mon, 2 May 2005 21:56:50 -0700

Hello,

I have an NSSplitView with an NSTextView as the upper subview and an
NSTableView as the lower subview. Based on the user selecting a menu
item during runtime, I would like to programmatically swap the lower
NSTableView for an NSTextView control (and vice versa) or remove the
lower subview entirely, displaying only the upper subview.

I know how to wire the menu and respond to user events, I am having
trouble finding ways of managing and swapping the controls. Any
guidance on a good approach would be greatly appreciated.

Thanks,
Dan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Programatically adding small checkboxes
  • Next by Date: Re: Swapping subview of NSSplitView
  • Previous by thread: Clarification: Detecting the Option key on selecting a menuitem
  • Next by thread: Re: Swapping subview of NSSplitView
  • Index(es):
    • Date
    • Thread