Re: Swapping subview of NSSplitView
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