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

Re: Swapping subview of NSSplitView


  • Subject: Re: Swapping subview of NSSplitView
  • From: Ian was here <email@hidden>
  • Date: Mon, 2 May 2005 22:23:24 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

You could try using an NSTabView, making the tabs
invisible. You could have your NSTableView be in one
tab, NSTextView in another, and maybe nothing in the
third, and programmatically switch tabs based on the
user's menu selection.




--- Dan Munk <email@hidden> wrote:
> 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
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
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: Swapping subview of NSSplitView
  • Next by Date: Re: Is this a bug in Tiger's NSBitmapImageRep?
  • Previous by thread: Swapping subview of NSSplitView
  • Next by thread: ditto in ObjC or C
  • Index(es):
    • Date
    • Thread